BIS fnc spawnCrew: 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= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Object Manipulation |GROUP1= | |gr1 = Object Manipulation |GROUP1= | ||
| 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.|Description= | In this mode the function can be used to count the actual crew of an existing vehicle or vehicle type.|Description= | ||
| [vehicle,group,dummyMode,dummyType,crewType]] call [[BIS_fnc_spawnCrew]] |Syntax= | | [vehicle,group,dummyMode,dummyType,crewType]] call [[BIS_fnc_spawnCrew]] |Syntax= | ||
Line 32: | Line 29: | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
---> | ---> | ||
|x1= <code>[ BIS_vehicle, [[group]] [[player]] ] [[call]] [[BIS_fnc_spawnCrew]];</code>|Example 1= | |x1= <code>[ BIS_vehicle, [[group]] [[player]] ] [[call]] [[BIS_fnc_spawnCrew]];</code>|Example 1= | ||
| [[crew]] |See also= | | [[crew]] |See also= |
Revision as of 00:48, 17 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
Notes
Bottom Section
- Posted on February 24, 2015 - 21:52 (UTC)
- Tankbuster
- This makes FFV units but no cargo crew.