![]() |
Getting the Nearest Player
Someone told me that if I used "with (getnearestplayer)" it'd find the player closest to active character... I found out obviously that it's not true... I'm trying to make a weapon spell for Maloria and having a hard time doing this the way the owner wants it, where it just finds the nearest person in the level and executes commands... anyone know a way I can get the nearest player?
|
var = getnearestplayer(x,y) (serverside.)
|
pid=getnearestplayer(x,y);
with (getplayer(#a(pid))) dostuff(); |
thers a getnearestplayers too i think.. returns near players in an array?
|
yes, and a getnearestnpc(s?) I have them all in me commands
|
If you read Stefan's hp document, it explains that:
Quote:
|
Quote:
|
and getareanpcs(x,y,width,height);
|
All times are GMT +2. The time now is 07:49 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.