nearestObject id

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Find object nearest to given Position with given Visitor id.

Position should be accurate, function can usually find objects further than 50 m away, but it is not guaranteed.

Note that this command is a replacement for the object command in ofp, which does not work in Arma

Syntax

Syntax:
Object = Position nearestObject id

Parameters:
id: Number
Return Value:
Object

Examples

Example 1:
_nObject = position player nearestObject 123456

Additional Information

Multiplayer:
Behaviour unknown.
See also:
nearestObject, nearestObjects, nearObjects, nearestObject type, nearestBuilding

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!