position nearestObject type
Operand types
position:
Arraytype:
String
Type of returned value
Description
Find object nearest to given position with given type.
Will only find objects up to 50m away.
Used In
ArmA
Example
obj = position player nearestObject "Building"