AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Teleporting Native (https://forums.alliedmods.net/showthread.php?t=102152)

hleV 08-30-2009 12:10

Teleporting Native
 
Code:
public plugin_natives()         register_native("SetLocation", "_SetLocation", 1);
The one I need, doesn't work (it teleports me somewhere else):
Code:
public _SetLocation(Client, Float:Location[3])         entity_set_vector(Client, EV_VEC_origin, Location);
Code:
native SetLocation(Client, Float:Location[3]);
The one I don't need, works:
Code:
public _SetLocation(Client, Float:X, Float:Y, Float:Z) {         static Float:Location[3];         Location[0] = X;         Location[1] = Y;         Location[2] = Z;           entity_set_vector(Client, EV_VEC_origin, Location); }
Code:
native SetLocation(Client, Float:X, Float:Y, Float:Z);
I need to know if it's possible to do that with the first method.


All times are GMT -4. The time now is 15:12.

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