BIS fnc vehicleCrewTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>")
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
Line 12: Line 12:
|p1= vehicle: [[Object]] or [[String]] - Vehicle or vehicle type
|p1= vehicle: [[Object]] or [[String]] - Vehicle or vehicle type


|r1= [[Array]] - Array of turrets in form of turret path ([-1] - is for driver turret)
|r1= [[Array]] - array of turrets in form of turret path ([-1] - is for driver turret)


|x1= <sqf>"B_APC_Wheeled_01_cannon_F" call BIS_fnc_vehicleCrewTurrets;</sqf>
|x1= <sqf>"B_APC_Wheeled_01_cannon_F" call BIS_fnc_vehicleCrewTurrets;</sqf>

Revision as of 12:40, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns vehicle crew turrets, which will be filled with crew if createVehicleCrew command is executed on the vehicle. If vehicle class is passed as param, all vehicle crew turrets are returned.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
vehicle call BIS_fnc_vehicleCrewTurrets
Parameters:
vehicle: Object or String - Vehicle or vehicle type
Return Value:
Array - array of turrets in form of turret path ([-1] - is for driver turret)

Examples

Example 1:
"B_APC_Wheeled_01_cannon_F" call BIS_fnc_vehicleCrewTurrets;
Example 2:
car1 call BIS_fnc_vehicleCrewTurrets;

Additional Information

See also:
createVehicleCrew BIS_fnc_allTurrets BIS_fnc_turretConfig

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