nearestBuilding: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Added SEEALSO) |
||
Line 21: | Line 21: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestBuilding_(VBS2)]] |= See also | | [[buildingPos]], [[nearestObject]], [[nearestObjects]], [[nearObjects]], [[nearestBuilding_(VBS2)]] |= See also | ||
}} | }} |
Revision as of 11:19, 8 January 2011
Description
- Description:
- Nearest building to given object.
A "building" is defined as an object that is of class "House", and contains a path LOD. - Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_nBuilding = nearestBuilding player
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Rübe
- A call to nearestBuilding tends to freeze/halt the game for some ticks or even seconds. You may want to use nearestObject(s) with the needed class restriction instead.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2