nearestBuilding: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|NEARESTBUILDING]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|NEARESTBUILDING]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|NEARESTBUILDING]]
[[Category:Scripting Commands ArmA|NEARESTBUILDING]]


| ofp |= Game name


<h2 style="color:#000066">'''nearestBuilding ''obj'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Nearest building to given object. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''nearestBuilding''' obj |= Syntax


'''obj:''' [[Object]]
|p1= obj: [[Object]] |= Parameter 1


'''Type of returned value:'''
| [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_nBuilding = nearestBuilding [[player]]</pre> |= Example 1
____________________________________________________________________________________________


[[Object]]
|  |= See also


'''Description:'''
}}


Nearest '''building''' to given '''object'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_nBuilding = '''nearestBuilding''' [[player]]
[[Category:Scripting Commands|NEARESTBUILDING]]
[[Category:Scripting Commands OFP 1.96|NEARESTBUILDING]]
[[Category:Scripting Commands OFP 1.46|NEARESTBUILDING]]
[[Category:Scripting Commands ArmA|NEARESTBUILDING]]

Revision as of 23:32, 1 August 2006

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:
See also needed

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