BIS fnc spawnCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
m (Some wiki formatting)
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Function to fill all crew positions in a vehicle, including turrets.
|game3= tkoh
In dummy mode no objects are created and the returned array contains only ones.
|version3= 1.00
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=
|game4= arma3
|version4= 0.50


|gr1= Object Manipulation


|p1= vehicle: [[Object]] - Vehicle |Parameter 1=
|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]]).


|p2= group: [[Group]] - Crew's group |Parameter 2=
|s1= [vehicle, group, dummyMode, dummyType, crewType]] call [[BIS_fnc_spawnCrew]]


|p3= dummyMode: [[Boolean]] - (Optional, default [[false]]) [[True]] to enable dummy mode |Parameter 3=
|p1= vehicle: [[Object]] - vehicle


|p4= dummyType: [[String]] - (Optional, default "") Dummy type |Parameter 4=
|p2= group: [[Group]] - crew's group


|p5= crewType: [[String]] - (Optional, default "") Crew type |Parameter 5=
|p3= dummyMode: [[Boolean]] - (Optional, default [[false]]) [[true]] to enable dummy mode


| [[Array]] or [[Number]] - Created crew objects or crew count |Return value=
|p4= dummyType: [[String]] - (Optional, default "") dummy type


<!---
|p5= crewType: [[String]] - (Optional, default "") crew type
|exec= spawn |= Execution
--->
____________________________________________________________________________________________


|x1= <code>[ BIS_vehicle, [[group]] [[player]] ] [[call]] [[BIS_fnc_spawnCrew]];</code>|Example 1=
|r1= [[Array]] or [[Number]] - created crew objects or crew count
____________________________________________________________________________________________


| [[crew]] |See also=
|x1= <sqf>[BIS_vehicle, group player] call BIS_fnc_spawnCrew;</sqf>
 
|seealso= [[crew]] [[fullCrew]]
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Tankbuster
<!-- Note Section BEGIN -->
|timestamp= 20150224215200
 
|text= This makes FFV units but no cargo crew.
<!-- Note Section END -->
}}
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Spawning|{{uc:spawnCrew}}]]
[[Category:Functions|{{uc:spawnCrew}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:spawnCrew}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:spawnCrew}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:spawnCrew}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:spawnCrew}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on February 24, 2015 - 21:52 (UTC)</dd>
<dt class="note">[[User:Tankbuster|Tankbuster]]</dt>
<dd class="note">
 
This makes FFV units but no cargo crew.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 13:22, 8 November 2023

Hover & click on the images for description

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:
[BIS_vehicle, group player] call BIS_fnc_spawnCrew;

Additional Information

See also:
crew fullCrew

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
Tankbuster - c
Posted on Feb 24, 2015 - 21:52 (UTC)
This makes FFV units but no cargo crew.