nearestBuilding: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''nearestBuilding''' obj |= Syntax
| [[Object#Building|Building]] <nowiki>=</nowiki> '''nearestBuilding''' [[Object]]|= Syntax
 
|p1= obj: [[Object]] |= Parameter 1


| [[Object]] |= Return value
| [[Object]] |= Return value

Revision as of 08:39, 28 August 2007

Hover & click on the images for description

Description

Description:
Nearest building to given object.
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

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.

Bottom Section