AlliedModders

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

Nick 07-10-2004 03:11

Origins
 
How would you get the origins of all players in the server?

Burnzy 07-10-2004 09:55

I found this in Engine inlude:
Code:
native entity_set_origin(iIndex, Float:fNewOrigin[3]);

This in amxmodx include:
Code:
/* Gets origin from player. * Modes: * 0 - current position. * 1 - position from eyes (weapon aiming). * 2 - end position from player position. * 3 - end position from eyes (hit point for weapon). * 4 - position of last bullet hit (only CS). */ native get_user_origin(index, origin[3], mode = 0);

Burnzy 07-10-2004 10:25

also found this in xtrafun
Code:
/* Gets the origin of an entity */ stock get_entity_origin(index, origin[3]) {     new Float:vector[3]     entity_get_vector(index, EV_VEC_origin, vector)     FVecIVec(vector, origin) } /* Sets the origin of an entity */ stock set_entity_origin(index, origin[3]) {     new Float:vector[3]     IVecFVec(originvector)     entity_set_vector(index, EV_VEC_origin, vector)


All times are GMT -4. The time now is 14:49.

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