BIS fnc initVehicleCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
Lou Montana (talk | contribs) m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= params: [[Array]] - | |p2= params: [[Array]] - in format: | ||
*0: crewType: [[Object]] or [[String]] - unit or unit type (will be created) | *0: crewType: [[Object]] or [[String]] - unit or unit type (will be created) | ||
*1: role: [[String]] - Can be: | *1: role: [[String]] - Can be: | ||
Line 22: | Line 22: | ||
|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]]) | |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]]) | |p5= agents: [[Boolean]] - (Optional, default [[false]]) create crew as [[agents]] | ||
|r1= [[Array]] - | |r1= [[Array]] - created units | ||
|x1= < | |x1= <sqf>[someVehicle, [player, "driver", 0], true, true] call BIS_fnc_initVehicleCrew;</sqf> | ||
|seealso= [[createVehicle]] [[crew]] [[driver]] | |seealso= [[createVehicle]] [[crew]] [[driver]] | ||
}} | }} |
Latest revision as of 17:27, 8 November 2023
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:
Additional Information
- See also:
- createVehicle crew driver
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