09-07-2012, 09:32 PM
MoveTo() is for internal use only, so perhaps it should not be exported to Lua at all.
As the description says, it should do collision checks and such, so it's not suitable for teleportation
Use cPawn:TeleportTo(x, y, z) instead
Code:
// Tries to move to a new position, with collision checks and stuff
virtual void MoveTo( const Vector3d & a_NewPos );
Use cPawn:TeleportTo(x, y, z) instead