BIS fnc initVehicleCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\[\[Category\:Function Group\: Vehicles(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 49: Line 49:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Vehicles|{{uc:initVehicleCrew}}]]
 
[[Category:Functions|{{uc:initVehicleCrew}}]]
[[Category:Functions|{{uc:initVehicleCrew}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:initVehicleCrew}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:initVehicleCrew}}]]

Revision as of 11:56, 12 October 2020

Hover & click on the images for description

Description

Description:
Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side.
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[object, params, deleteCrew, anySeat, agents] call BIS_fnc_initVehicleCrew
Parameters:
object: Object
params: Array - In format:
  • 0: crewType: Object or String - unit or unit type (will be created)
  • 1: role: String - Can be:
    • "driver"
    • "turret"
    • "cargo"
  • 2: index: Number or Array - Cargo index or turret path
deleteCrew: Boolean - (Optional, default false) True to delete existing crew
anySeat: Boolean - (Optional, default false) When desired seats are occuppied, move crew in the vehicle to any other available seat
agents: Boolean - (Optional, default false) Create crew as agents
Return Value:
Array - Created units

Examples

Example 1:
[ someVehicle, [player, "driver", 0], true, true ] call BIS_fnc_initVehicleCrew;

Additional Information

See also:
createVehiclecrewdriver

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