nearestObject
Jump to navigation
Jump to search
Description
- Description:
- Nearest object of given type to given position. For nearestObject pos, pos may be [x, y ,z, "type"] or [object, "type"] or even [x, y, z].
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_nObject = nearestObject [player, "StreetLamp"]
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
-
This command can only find objects up to 50 meters away.