nearestObject

From Bohemia Interactive Community
Revision as of 00:31, 2 August 2006 by Hoz (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description

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

Syntax:
nearestObject pos
Parameters:
pos: Array
Return Value:
Object

Examples

Example 1:
_nObject = nearestObject [ [[player]], "StreetLamp"] 
Comments This command can only find objects up to 50 meters away.

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

Bottom Section