BIS fnc spawnCrew: 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 | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Function to fill all crew positions in a vehicle, including turrets. | | Function to fill all crew positions in a vehicle, including turrets. | ||
In dummy mode no objects are created and the returned array contains only ones. | In dummy mode no objects are created and the returned array contains only ones. | ||
In this mode the function can be used to count the actual crew of an existing vehicle or vehicle type. | In this mode the function can be used to count the actual crew of an existing vehicle or vehicle type. | ||
| [vehicle,group,dummyMode,dummyType,crewType]] call [[BIS_fnc_spawnCrew]] | | [vehicle,group,dummyMode,dummyType,crewType]] call [[BIS_fnc_spawnCrew]] | ||
|p1= vehicle: [[Object]] - Vehicle | |p1= vehicle: [[Object]] - Vehicle | ||
|p2= group: [[Group]] - Crew's group | |p2= group: [[Group]] - Crew's group | ||
|p3= dummyMode: [[Boolean]] - (Optional, default [[false]]) [[true]] to enable dummy mode | |p3= dummyMode: [[Boolean]] - (Optional, default [[false]]) [[true]] to enable dummy mode | ||
|p4= dummyType: [[String]] - (Optional, default "") Dummy type | |p4= dummyType: [[String]] - (Optional, default "") Dummy type | ||
|p5= crewType: [[String]] - (Optional, default "") Crew type | |p5= crewType: [[String]] - (Optional, default "") Crew type | ||
| [[Array]] or [[Number]] - Created crew objects or crew count | | [[Array]] or [[Number]] - Created crew objects or crew count | ||
<!--- | <!--- | ||
Line 30: | Line 30: | ||
---> | ---> | ||
|x1= <code>[ BIS_vehicle, [[group]] [[player]] ] [[call]] [[BIS_fnc_spawnCrew]];</code> | |x1= <code>[ BIS_vehicle, [[group]] [[player]] ] [[call]] [[BIS_fnc_spawnCrew]];</code> | ||
| [[crew]] | | [[crew]] | ||
}} | }} | ||
Revision as of 00:44, 18 January 2021
Description
- Description:
- Function to fill all crew positions in a vehicle, including turrets. In dummy mode no objects are created and the returned array contains only ones. In this mode the function can be used to count the actual crew of an existing vehicle or vehicle type.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle,group,dummyMode,dummyType,crewType]] call BIS_fnc_spawnCrew
- Parameters:
- vehicle: Object - Vehicle
- group: Group - Crew's group
- dummyMode: Boolean - (Optional, default false) true to enable dummy mode
- dummyType: String - (Optional, default "") Dummy type
- crewType: String - (Optional, default "") Crew type
- Return Value:
- Array or Number - Created crew objects or crew count
Examples
- Example 1:
[ BIS_vehicle, group player ] call BIS_fnc_spawnCrew;
Additional Information
- See also:
- crew
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
Bottom Section
- Posted on February 24, 2015 - 21:52 (UTC)
- Tankbuster
- This makes FFV units but no cargo crew.