BIS fnc initVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Vehicles | |gr1 = Vehicles | ||
| Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side. | | Moves units into vehicle seats. When units don't exist, it will create them in a group of vehicle's side. | ||
| [object, params, deleteCrew, anySeat, agents] call [[BIS_fnc_initVehicleCrew]] | | [object, params, deleteCrew, anySeat, agents] call [[BIS_fnc_initVehicleCrew]] | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= params: [[Array]] - In format: | |p2= params: [[Array]] - In format: | ||
Line 20: | Line 20: | ||
**"turret" | **"turret" | ||
**"cargo" | **"cargo" | ||
*2: index: [[Number]] or [[Array]] - Cargo index or turret path | *2: index: [[Number]] or [[Array]] - Cargo index or turret path | ||
|p3= deleteCrew: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete existing crew | |p3= deleteCrew: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete existing crew | ||
|p4= anySeat: [[Boolean]] - (Optional, default [[false]]) When desired seats are occuppied, move crew in the vehicle to any other available seat | |p4= anySeat: [[Boolean]] - (Optional, default [[false]]) When desired seats are occuppied, move crew in the vehicle to any other available seat | ||
|p5= agents: [[Boolean]] - (Optional, default [[false]]) Create crew as [[agents]] | |p5= agents: [[Boolean]] - (Optional, default [[false]]) Create crew as [[agents]] | ||
| [[Array]] - Created units | | [[Array]] - Created units | ||
|x1= <code>[ someVehicle, [<nowiki/>[[player]], "driver", 0], [[true]], [[true]] ] [[call]] [[BIS_fnc_initVehicleCrew]];</code> | |x1= <code>[ someVehicle, [<nowiki/>[[player]], "driver", 0], [[true]], [[true]] ] [[call]] [[BIS_fnc_initVehicleCrew]];</code> | ||
| [[createVehicle]],[[crew]], [[driver]] | | [[createVehicle]],[[crew]], [[driver]] | ||
}} | }} | ||
Revision as of 23:11, 17 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