fullCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (gamename)
No edit summary
Line 14: Line 14:
|p1 = vehicle: [[Object]] or [[Array]] in format [vehicle, type]
|p1 = vehicle: [[Object]] or [[Array]] in format [vehicle, type]
|p2 = type: [[String]] - filter, available values are "driver", "commander", "gunner", "turret", "cargo"
|p2 = type: [[String]] - filter, available values are "driver", "commander", "gunner", "turret", "cargo"
| [[Array]] - in format <nowiki>[[</nowiki>unit,role,turretPath,humanTurret], ...] |= Return value
| [[Array]] - in format <nowiki>[[</nowiki>unit,role,cargoIndex,turretPath,humanTurret], ...] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>_list = '''fullCrew''' vehicle player</code> |= Example1
|x1 = <code>_list = '''fullCrew''' vehicle player</code> |= Example1

Revision as of 11:41, 21 October 2014

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.33|1.33]]
Hover & click on the images for description

Description

Description:
Returns array with all crew inside given vehicle.
Groups:
Uncategorised

Syntax

Syntax:
fullCrew vehicle
Parameters:
vehicle: Object or Array in format [vehicle, type]
type: String - filter, available values are "driver", "commander", "gunner", "turret", "cargo"
Return Value:
Array - in format [[unit,role,cargoIndex,turretPath,humanTurret], ...]

Examples

Example 1:
_list = fullCrew vehicle player
Example 2:
_list = fullCrew [vehicle player,"turret"]

Additional Information

See also:
crew

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]]

Notes

Bottom Section