nearestBuilding: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (seealso)
No edit summary
Line 28: Line 28:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
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.
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 04:11, 13 July 2010

Hover & click on the images for description

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

Syntax:
Object = nearestBuilding object
Parameters:
object: Object
Return Value:
Object

Examples

Example 1:
_nBuilding = nearestBuilding player

Additional Information

See also:
nearestObjectnearestObjectsnearObjectsnearestBuilding_(VBS2)

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

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