nearestBuilding
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
Description
- Description:
- Nearest building to given object.
Syntax
Examples
- Example 1:
_nBuilding = nearestBuilding player
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- nearestObject, nearestObjects, nearObjects, nearestObject type
Notes
Notes
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.

