Raised This Month: $ Target: $400
 0% 

problem with TeleportEntity function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Uncle Dave
New Member
Join Date: Jun 2022
Old 06-11-2022 , 12:26   problem with TeleportEntity function
Reply With Quote #1

hi! when i try to do something with teleportentity function, it doesnt work, anybody has examples of how does it work? please help!
Uncle Dave is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-13-2022 , 08:07   Re: problem with TeleportEntity function
Reply With Quote #2

https://sm.alliedmods.net/new-api/sd...TeleportEntity

PHP Code:
TeleportEntity Function
Teleports an entity.

void TeleportEntity(int entity, const float origin[3], const float angles[3], const float velocity[3]) 
Usually, people get the position and angles based on another entity and use

PHP Code:
    float vPos[3];
    
GetEntPropVector(clientProp_Data"m_vecAbsOrigin"vPos);

    
float vAngles[3];
    
GetEntPropVector(clientProp_Data"m_angAbsRotation"vAngles);

    
TeleportEntity(entityYouWantTeleportvPosvAnglesNULL_VECTOR
__________________

Last edited by Marttt; 06-13-2022 at 08:07.
Marttt is offline
Reply



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 21:52.


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