BIS fnc initVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
m (pf) |
mNo edit summary |
||
Line 27: | Line 27: | ||
|p4= anySeat: [[Boolean]] - (Optional, default [[false]]) When desired seats are occuppied, move crew in the vehicle to any other available seat |Parameter 4= | |p4= anySeat: [[Boolean]] - (Optional, default [[false]]) When desired seats are occuppied, move crew in the vehicle to any other available seat |Parameter 4= | ||
|p5= agents: [[Boolean]] - (Optional, default [[false]]) Create crew as [[agents]] |Parameter | |p5= agents: [[Boolean]] - (Optional, default [[false]]) Create crew as [[agents]] |Parameter 5= | ||
| [[Array]] - Created units |Return value= | | [[Array]] - Created units |Return value= |
Revision as of 19:28, 24 September 2020
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:
- Uncategorised
Syntax
- Syntax:
- [object, params, deleteCrew, anySeat, agents] call BIS_fnc_initVehicleCrew
- Parameters:
- object: Object
- params: Array - In format:
- 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