NaveReyem 0 Posted October 5, 2005 Hello and good day dudes, ive been stumped on this problem for a few days now and would kindly request some help from these forums here... Ive got an AI in this script right, and he is civilian side, I want to be able to tell who is the nearest unit to him that is not on the civilian side. any help? ps. the civlian side thing i can do, i just need to know how to find nearest unit.. edit : hey i just realized this is 8000 post on here, lol Share this post Link to post Share on other sites
tug2000 0 Posted October 6, 2005 Search maybe... Or try www.ofpec.com Share this post Link to post Share on other sites
NaveReyem 0 Posted October 6, 2005 ive searches for 4 days, ive found many scripts but i cant decipher them, too many variables involved... ive not seen any Tuts on it either Share this post Link to post Share on other sites
Blanco 0 Posted October 6, 2005 Use GB's Findunits function or bdfy85's Findclosest function Share this post Link to post Share on other sites
NaveReyem 0 Posted October 6, 2005 thanks, on that link i read something about ImprovedNearestObject, any idea what that is??? Share this post Link to post Share on other sites
Blanco 0 Posted October 7, 2005 Nearestobject can only detect objects within a 50m radius. The findclosest function finds the closest object no matter what the distance is... and ...with GB's findunits function you can specify the radius because it's a parameter to call the function. Share this post Link to post Share on other sites
NaveReyem 0 Posted October 7, 2005 yesyes Blanco, i didnt need to know when a unit is near an array of people, i needed to know who was the closest unit in an array to a certain person, i Ended up using bdfv85's FindClosest function, the nearestobject i know is only 50 meters, someone else made a function of nearestobject that detects at any distance, called Improvednearestobject, thats what i was talking about.. .... Findclosest and Improvednearestobject are basically the same lol.... Share this post Link to post Share on other sites