crew: 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|CREW]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CREW]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CREW]]
[[Category:Scripting Commands ArmA|CREW]]


| ofp |= Game name


<h2 style="color:#000066"> '''crew ''vehicle'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the crew of the given vehicle. |= Description
____________________________________________________________________________________________


'''vehicle:''' [[Object]]
| '''crew''' vehicle |= Syntax


'''Type of returned value:'''
|p1= vehicle: [[Object]] |= Parameter 1


[[Array]]
| [[Type Array]]
Array with elements of type [[Object]]. An array with all units in the vehicle is returned. |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player in (crew tank)</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[commander]], [[driver]], [[gunner]] |= See also


All units mounted in given '''vehicle'''.
}}


If vehicle is not a vehicle, but a person, list containing only person is returned.
<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>


_c = '''crew''' [[vehicle]] [[player]]
[[Category:Scripting Commands|CREW]]
[[Category:Scripting Commands OFP 1.96|CREW]]
[[Category:Scripting Commands OFP 1.46|CREW]]
[[Category:Scripting Commands ArmA|CREW]]

Revision as of 23:10, 1 August 2006

Hover & click on the images for description

Description

Description:
Returns the crew of the given vehicle.
Groups:
Uncategorised

Syntax

Syntax:
crew vehicle
Parameters:
vehicle: Object
Return Value:
Type Array - Array with elements of type Object. An array with all units in the vehicle is returned.

Examples

Example 1:
player in (crew tank)

Additional Information

See also:
commanderdrivergunner

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