BIS fnc spawnCrew: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )C([a-z])" to "$1c$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 16: | Line 16: | ||
|descr= Function to fill all crew positions in a vehicle, including turrets. | |descr= 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; this mode can be used to count the actual crew of an existing vehicle or vehicle type (see also [[crew]], [[fullCrew]]). | |||
|s1= [vehicle,group,dummyMode,dummyType,crewType]] call [[BIS_fnc_spawnCrew]] | |s1= [vehicle, group, dummyMode, dummyType, crewType]] call [[BIS_fnc_spawnCrew]] | ||
|p1= vehicle: [[Object]] - | |p1= vehicle: [[Object]] - vehicle | ||
|p2= group: [[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 "") | |p4= dummyType: [[String]] - (Optional, default "") dummy type | ||
|p5= crewType: [[String]] - (Optional, default "") crew type | |p5= crewType: [[String]] - (Optional, default "") crew type | ||
|r1= [[Array]] or [[Number]] - | |r1= [[Array]] or [[Number]] - created crew objects or crew count | ||
|x1= <sqf>[ BIS_vehicle, group player ] call BIS_fnc_spawnCrew;</sqf> | |x1= <sqf>[BIS_vehicle, group player] call BIS_fnc_spawnCrew;</sqf> | ||
|seealso= [[crew]] | |seealso= [[crew]] [[fullCrew]] | ||
}} | }} | ||
{{Note | |||
|user= Tankbuster | |||
|timestamp= 20150224215200 | |||
|text= This makes FFV units but no cargo crew. | |||
}} | |||
This makes FFV units but no cargo crew. | |||
Latest revision as of 12:22, 8 November 2023
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; this mode can be used to count the actual crew of an existing vehicle or vehicle type (see also crew, fullCrew).
- 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:
Additional Information
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
- Posted on Feb 24, 2015 - 21:52 (UTC)
- This makes FFV units but no cargo crew.