fullCrew: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Killzone Kid (talk | contribs) (format, alt syntax, see also) |
||
Line 12: | Line 12: | ||
|'''fullCrew''' vehicle|= Syntax | |'''fullCrew''' vehicle|= Syntax | ||
|p1 = vehicle: [[Object] | |p1 = vehicle: [[Object]] | ||
| [[Array]] - format <nowiki>[[</nowiki><[[Object]]>unit,<[[String]]>role,<[[Number]]>cargoIndex,<[[Array]]>turretPath,<[[Boolean]]>personTurret], ...] |= Return value | |||
| [[Array]] - | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>_list = | |s2='''fullCrew''' [vehicle, type]|= Syntax | ||
|x2 = <code>_list = | |p21 = [vehicle, type]: [[Array]] in format [vehicle, type] | ||
|p22 = vehicle: [[Object]] | |||
|p23 = type: [[String]] - filter (role) available values are "driver", "commander", "gunner", "turret", "cargo" | |||
|r2= [[Array]] - format <nowiki>[[</nowiki><[[Object]]>unit,<[[String]]>role,<[[Number]]>cargoIndex,<[[Array]]>turretPath,<[[Boolean]]>personTurret], ...] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1 = <code>_list = [[fullCrew]] [[vehicle]] [[player]];</code> |= Example1 | |||
|x2 = <code>_list = [[fullCrew]] <nowiki>[</nowiki>[[vehicle]] [[player]], "turret"];</code> |= Example2 | |||
| [[crew]] |= See also | | [[crew]], [[createVehicleCrew]], [[assignedVehicleRole]], [[allTurrets]] |= See also | ||
}} | }} |
Revision as of 13:08, 21 October 2014
Description
- Description:
- Returns array with all crew inside given vehicle.
- Groups:
- Uncategorised
Syntax
- Syntax:
- fullCrew vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array - format [[<Object>unit,<String>role,<Number>cargoIndex,<Array>turretPath,<Boolean>personTurret], ...]
Alternative Syntax
- Syntax:
- fullCrew [vehicle, type]
- Parameters:
- [vehicle, type]: Array in format [vehicle, type]
- vehicle: Object
- type: String - filter (role) available values are "driver", "commander", "gunner", "turret", "cargo"
- Return Value:
- Array - format [[<Object>unit,<String>role,<Number>cargoIndex,<Array>turretPath,<Boolean>personTurret], ...]
Examples
Additional Information
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
[[Category:Introduced with arma3dev version 1.33]][[ Category: arma3dev: New Scripting Commands | FULLCREW]][[ Category: arma3dev: Scripting Commands | FULLCREW]]