nearestBuilding: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(add. definition of building)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Nearest building to given object. |= Description
| Nearest building to given object. <br>
A "building" is defined as an object that has a path LOD defined (independently of which class it belongs to). |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 25: Line 26:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 25 Feb, 2007</dd>
<dt class="note">[[User:Dr_Eyeball|Dr_Eyeball]]</dt><dd class="note">
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.
</dd>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 01:48, 17 October 2008

Hover & click on the images for description

Description

Description:
Nearest building to given object.
A "building" is defined as an object that has a path LOD defined (independently of which class it belongs to).
Groups:
Uncategorised

Syntax

Syntax:
Building = nearestBuilding Object
Return Value:
Object

Examples

Example 1:
_nBuilding = nearestBuilding player

Additional Information

See also:
nearestObjectnearestObjectsnearObjectsnearestObject type

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

Bottom Section