![]() |
getnearestplayer ?
Does this work or not?
I'm trying to do it clientside but it always returns 0. |
It's serverside only. :(
|
Thankfully with for (temp.var : players) -- you can emulate such.
Also: GS2 Version -> findnearestplayer() |
Quote:
|
Quote:
|
Depends if you want client lag or server lag. It is pure opinion, really.
|
Triggering back and forth would lag more than going through players and finding the distance between this.x and the player's x, same for y. (Using the distance formula)
|
Quote:
|
| All times are GMT +2. The time now is 04:09 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.