Warning: file_put_contents(/ff_93d671d0b6033556271b7cb4cc355d91090f054a9ad34a92.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
nearestObject - OFPEC Scripting Command Reference | OFPEC The Editing Center

position nearestObject id

Operand types

position: Array
id: 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

Advertisement