fullCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format, alt syntax, see also)
mNo edit summary
Line 16: Line 16:
____________________________________________________________________________________________
____________________________________________________________________________________________
|s2='''fullCrew''' [vehicle, type]|= Syntax
|s2='''fullCrew''' [vehicle, type]|= Syntax
|p21 = [vehicle, type]: [[Array]] in format [vehicle, type]
|p21 = [vehicle, type]: [[Array]]
|p22 = vehicle: [[Object]]
|p22 = vehicle: [[Object]]
|p23 = type: [[String]] - filter (role) available values are "driver", "commander", "gunner", "turret", "cargo"
|p23 = type: [[String]] - filter (role) available values are "driver", "commander", "gunner", "turret", "cargo"

Revision as of 14:10, 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
Return Value:
Array - format [[<Object>unit,<String>role,<Number>cargoIndex,<Array>turretPath,<Boolean>personTurret], ...]

Alternative Syntax

Syntax:
fullCrew [vehicle, type]
Parameters:
[vehicle, type]: Array
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

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

Additional Information

See also:
crewcreateVehicleCrewassignedVehicleRoleallTurrets

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