nearestObject type

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 ClassType from CfgVehicles.

Syntax

Syntax:
Object = Position nearestObject "ClassType"
Parameters:
ClassType: String
Return Value:
Object

Examples

Example 1:
_nObject = position player nearestObject "StreetLamp"

Additional Information

Multiplayer:
Behaviour unknown.
See also:
nearestObject, nearestObjects, nearObjects, nearestObject id

Notes

Notes

+ Add Note

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

Notes

This command can only find objects up to 50 meters away.

Bottom Section

Personal tools
Buy ArmA now!