position nearestObject type

Operand types

position: Array
type: 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"
Search OFPEC COMREF