Raised This Month: $51 Target: $400
 12% 

Solved TeleportEntity function?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode