nearestBuilding

From Bohemia Interactive Community

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

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Nearest building to given object.

Syntax

Syntax:
Building = nearestBuilding Object
Return Value:
Object

Examples

Example 1:
_nBuilding = nearestBuilding player

Additional Information

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

Notes

Notes

+ Add Note

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

Notes

Posted on 25 Feb, 2007
Dr_Eyeball
Static type "Church" is not found by nearestBuilding, (although it is derived from class "Building", it's not found for some reason, unfortunately). Use nearestObject [player, "Church"] instead.

Bottom Section

Personal tools
Buy ArmA now!