nearestBuilding: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:
<dd class="notedate">Posted on 25 Feb, 2007</dd>
<dd class="notedate">Posted on 25 Feb, 2007</dd>
<dt class="note">[[User:Dr_Eyeball|Dr_Eyeball]]</dt><dd class="note">
<dt class="note">[[User:Dr_Eyeball|Dr_Eyeball]]</dt><dd class="note">
Static type "Church" is not found by ''nearestBuilding'', (even you may have expected it to be classed as a "Building", it's not related unfortunately). Use nearestObject [player, "Church"] instead.
Static type "Church" is not found by ''nearestBuilding'', (although you may have expected it to be classed as a "Building", it's not related or derived from it, unfortunately). Use nearestObject [player, "Church"] instead.
</dd>
</dd>
<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 08:51, 25 February 2007

Hover & click on the images for description

Description

Description:
Nearest building to given object.
Groups:
Uncategorised

Syntax

Syntax:
nearestBuilding obj
Parameters:
obj: 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

Posted on 25 Feb, 2007
Dr_Eyeball
Static type "Church" is not found by nearestBuilding, (although you may have expected it to be classed as a "Building", it's not related or derived from it, unfortunately). Use nearestObject [player, "Church"] instead.

Bottom Section