Hi all
I don't know exactly but i think it's about 6 months now that i wait for the nearestObject command to work. Now that the 1.85 patch is out and that command should work again i tried a little stupid script, but ... IT DOESN'T WORK !! :hmm: ....
....look at this:
_FleeUnit = _this select 0
_x = getPos _FleeUnit select 0
_y = getPos _FleeUnit select 1
_z = getPos _FleeUnit select 2
_near = NearestObject [_x,_y,_z]
player globalChat format ["Driver: %1, Car: %2", _FleeUnit, _near]
^ this works, but it doesn't return what i need, it returns the name of FleeUnit (nearestobject to myself is myself ? :hmm: oh well).
I searched the forum and the Command Reference (official and not), every example different from the one above doesn't work.
I need to find the nearest land vehicle to _FleeUnit, i thought that would be:
_FleeUnit = _this select 0
_near = NearestObject [_FleeUnit, "Car"]
... or:
_FleeUnit = _this select 0
_near = NearestObject [_FleeUnit, "Land"]
... but everytime i try that i get a "scalar bool string ecc ..." stuff instead of the nearest vehicle name.
Did BIS really fix the nearestObject command or did they just say so?!
Maybe i'm just too stupid, but WTF, even if i copy an example from the comref it doesn't work !!!!!!!!!
Plz :help: !!
Thx in advance!