Comparing players origin
My scripting skill has been rusty due to not doing any scripting for a long time now. How do you save the 'before' and 'after' origins (X,Y,Z) of all players and then compare them together to see if they are the same?
|
Re: Comparing players origin
Not sure if I understood correctly but you can get both origins and then check the distance apart which will determine if there was a change. To check all just use a loop with get_players().
PHP Code:
|
Re: Comparing players origin
You understood my question correctly :)
that fDistanceApart var, the distance is calculated for which angle? |
Re: Comparing players origin
Total distance, each axis is considered. If, for example you want only ground distance, set Z coord (origin[ 2 ]) on both origins to 0.
|
| All times are GMT -4. The time now is 23:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.