AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to teleport player to my chosen Cordinates? (https://forums.alliedmods.net/showthread.php?t=128265)

drakeris 05-30-2010 13:23

how to teleport player to my chosen Cordinates?
 
-TITLE Everything...-

wrecked_ 05-30-2010 13:23

Re: how to teleport player to my chosen Cordinates?
 
Code:
new Float:coords[3] set_pev( playerindex, pev_origin, coords )

Emp` 05-30-2010 13:26

Re: how to teleport player to my chosen Cordinates?
 
Quote:

Originally Posted by wrecked_ (Post 1195398)
Code:
new Float:coords[3] set_pev( playerindex, pev_origin, coords )

You should not do it this way, it is better to do:
Code:

//engine
entity_set_origin(iIndex, const Float:fNewOrigin[3]);

//fakemeta_util
fm_entity_set_origin(index, const Float:origin[3])


wrecked_ 05-30-2010 13:29

Re: how to teleport player to my chosen Cordinates?
 
Quote:

Originally Posted by Emp` (Post 1195405)
You should not do it this way, it is better to do:
Code:

//engine
entity_set_origin(iIndex, const Float:fNewOrigin[3]);

//fakemeta_util
fm_entity_set_origin(index, const Float:origin[3])


Could you explain your reasoning?

Brreaker 05-30-2010 13:37

Re: how to teleport player to my chosen Cordinates?
 
set_user_origin(id, origin)... ?

xPaw 05-30-2010 13:39

Re: how to teleport player to my chosen Cordinates?
 
Quote:

Originally Posted by wrecked_ (Post 1195409)
Could you explain your reasoning?

fixes mins/maxs with new origin

wrecked_ 05-30-2010 21:33

Re: how to teleport player to my chosen Cordinates?
 
Quote:

Originally Posted by Brreaker (Post 1195423)
set_user_origin(id, origin)... ?

That uses integer values, but that is another method.

Quote:

Originally Posted by xPaw (Post 1195428)
fixes mins/maxs with new origin

Oh, alright. Thanks.

drakeris 05-31-2010 01:32

Re: how to teleport player to my chosen Cordinates?
 
Thanks all for help


All times are GMT -4. The time now is 05:25.

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