Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   getnearestplayer ? (https://forums.graalonline.com/forums/showthread.php?t=74370)

JkWhoSaysNi 06-03-2007 10:16 PM

getnearestplayer ?
 
Does this work or not?

I'm trying to do it clientside but it always returns 0.

killerogue 06-03-2007 10:26 PM

It's serverside only. :(

Deadly_Killer 06-03-2007 10:47 PM

Thankfully with for (temp.var : players) -- you can emulate such.

Also:
GS2 Version -> findnearestplayer()

killerogue 06-03-2007 10:55 PM

Quote:

Originally Posted by Deadly_Killer (Post 1314778)
Thankfully with for (temp.var : players) -- you can emulate such.

Also:
GS2 Version -> findnearestplayer()

Methinks using a triggerserver and triggerclient or triggeraction back would just be easier than checking "in" distances.

Deadly_Killer 06-04-2007 02:21 AM

Quote:

Originally Posted by killerogue (Post 1314783)
Methinks using a triggerserver and triggerclient or triggeraction back would just be easier than checking "in" distances.

Meknows you are terribly wrong.

zokemon 06-04-2007 09:55 AM

Depends if you want client lag or server lag. It is pure opinion, really.

cbk1994 06-06-2007 02:37 PM

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)

zokemon 06-06-2007 03:25 PM

Quote:

Originally Posted by cbkbud (Post 1315555)
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)

As I said, depends if you want client lag or server lag. It is pure opinion, really.


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.