BIS fnc spawnCrew: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - ">Posted on February ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-02-$1")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )C([a-z])" to "$1c$3")
Line 29: Line 29:
|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


|r1= [[Array]] or [[Number]] - Created crew objects or crew count
|r1= [[Array]] or [[Number]] - Created crew objects or crew count

Revision as of 12:20, 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. 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


Posted on 2015-02-24 - 21:52 (UTC)
Tankbuster
This makes FFV units but no cargo crew.