BIS fnc initVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Vehicles |GROUP1= | |gr1 = Vehicles |GROUP1= | ||
| Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side. |Description= | | Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side. |Description= | ||
| [object, params, deleteCrew, anySeat, agents] call [[BIS_fnc_initVehicleCrew]] |Syntax= | | [object, params, deleteCrew, anySeat, agents] call [[BIS_fnc_initVehicleCrew]] |Syntax= | ||
Line 32: | Line 29: | ||
| [[Array]] - Created units |Return value= | | [[Array]] - Created units |Return value= | ||
|x1= <code>[ someVehicle, [<nowiki/>[[player]], "driver", 0], [[true]], [[true]] ] [[call]] [[BIS_fnc_initVehicleCrew]];</code> |Example 1= | |x1= <code>[ someVehicle, [<nowiki/>[[player]], "driver", 0], [[true]], [[true]] ] [[call]] [[BIS_fnc_initVehicleCrew]];</code> |Example 1= | ||
| [[createVehicle]],[[crew]], [[driver]] |See also= | | [[createVehicle]],[[crew]], [[driver]] |See also= |
Revision as of 23:28, 16 January 2021
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:
- 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