position nearestObject id
Operand types
position:
Arrayid:
Number
Type of returned value
Description
Find object nearest to given position with given Visitor id.
Will find objects further than 50m away.
Used In
ArmA
Example
obj = position player nearestObject 1234
Unlike the non-functional object command however, this one requires an initial position to start the search from. Should be un-necessary, but there you have it.