Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   getnearestplayer() (https://forums.graalonline.com/forums/showthread.php?t=48631)

-Ramirez- 10-15-2003 03:41 AM

getnearestplayer()
 
It would be nice if this function allowed you to specify an index along with the coordinates. An index of 0 would be the closest player to the coordinates, 1 would be the next closest, etc.

Python523 10-15-2003 03:43 AM

there's getnearestplayers(x,y,condition)

-Ramirez- 10-15-2003 03:44 AM

Quote:

Originally posted by Python523
there's getnearestplayers(x,y,condition)
...in 3.1?

Python523 10-15-2003 03:48 AM

Quote:

Originally posted by -Ramirez-

...in 3.1?

no, now

DustyPorViva 10-15-2003 03:50 AM

I would like to know a little bit abotu getnearestplayer.

Anyone like to explain?

I know it gets the nearest player but I would like to know the conditions and such.

It's serverside, correct?

-Ramirez- 10-15-2003 03:51 AM

wtf, I didn't know such a thing existed. *slaps self*

Python523 10-15-2003 03:53 AM

Quote:

Originally posted by DustyPorViva
I would like to know a little bit abotu getnearestplayer.

Anyone like to explain?

I know it gets the nearest player but I would like to know the conditions and such.

It's serverside, correct?

It doesn't get the nearest player, it gets the index, and for condition just think about what a condition is,
i = getnearestplayers(x,y,!strequals(#g,Staff));

DustyPorViva 10-15-2003 03:55 AM

Ah, thanks.

I knew it got the index, that is what I meant.
I just didn't think about the conditions.


All times are GMT +2. The time now is 04:19 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.