Thread: [Solved] TeleportEntity function?
View Single Post
Author Message
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-14-2018 , 09:55   TeleportEntity function?
Reply With Quote #1

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 Floatrigin[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?
Attached Thumbnails
Click image for larger version

Name:	s.png
Views:	403
Size:	10.4 KB
ID:	172751  

Last edited by desire worker; 12-14-2018 at 20:24. Reason: misspelling
desire worker is offline