BIS_fnc_initVehicleCrew

From Bohemia Interactive Community
Revision as of 03:18, 2 February 2021 by R3vo (talk | contribs) (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
Syntax needed
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:
Return value needed

Examples

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

Additional Information

See also:
See also needed

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