I saw the Wiki first but didn`t understand well. my code is working crazy now due to this function.
--------------------------------------------------------------
Syntax:
native TeleportEntity(entity, const Float
rigin[3], const Float:angles[3], const Float:velocity[3]);
Usage:
entity Client index.
origin New origin, or NULL_VECTOR for no change.
angles New angles, or NULL_VECTOR for no change.
velocity New velocity, or NULL_VECTOR for no change.
--------------------------------------------------------------
Grasping meaning of entity, origin is fine but the others make me confused
suppose that there are 3rd dimensional vector space.
and wanna move 'client' in vector CP(x1, y1, z1) to vector DP(x2, y2, z2)
then the code be the below because we wanna teleport 'client' to
designated position DP(x2, y2, z2)
Code:
TeleportEntity(client, DP);
but what is angle vector and velocity vector?
I was think below two things for each but neither was wrong.
angle vector : view direction of client after teleport? or direction vector during teleport?
velocity vector : velocity during teleport? velocity of client after teleport?