AlliedModders

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

avril-lavigne 10-18-2014 14:56

need offset
 
A year ago I found offset showing coodinates of a player on map ( exactly like pev_origin )

Cant remember, similar to
blah. X
blah. Y


can someone tell me what offset that was

fysiks 10-18-2014 15:03

Re: need offset
 
Is there a reason you don't just use pev_origin or get_user_origin()?

avril-lavigne 10-18-2014 15:17

Re: need offset
 
just curious. I thought offsets are more efficient

fysiks 10-18-2014 15:31

Re: need offset
 
I don't know why people think that. Use the ones that already work. Ideally, as a plugin writer, you should never need to use offsets (i.e. there should be functions that do what you need already that use the offsets internally in the DLL where it is most efficient). The only time that you should consider using offsets directly is if a function does not already exist to do what you want. In your case, there are at least two functions to do what you want. Use those.


All times are GMT -4. The time now is 17:45.

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