BIS fnc returnVehicleTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Some wiki formatting)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma2
|game1= arma2
|1.00
|version1= 1.00


|game2= arma2oa
|game2= arma2oa
Line 15: Line 15:
|gr1= Vehicles
|gr1= Vehicles


| Return the path to all turrets and sub-turrets in a vehicle.
|descr= Return the path to all turrets and sub-turrets in a vehicle.
{{Feature|arma3|Does not seem to work in {{arma3}}. Use [[allTurrets]] and [[BIS_fnc_allTurrets]] instead}}
{{Feature|arma3|Does not seem to work in {{arma3}}. Use [[allTurrets]] and [[BIS_fnc_allTurrets]] instead.}}


| [configEntry] call [[BIS_fnc_returnVehicleTurrets]]
|s1= [configEntry] call [[BIS_fnc_returnVehicleTurrets]]


|p1= configEntry: [[Config]] - vehicle config entry
|p1= configEntry: [[Config]] - vehicle config entry


|r1=[[Array]] - turret paths ([0], [0, 1] format)
|r1= [[Array]] - turret paths ([0], [0, 1] format)


|x1= <code><nowiki>[</nowiki>[[configFile]] >> "CfgVehicles" >> "B_MBT_01_TUSK_F"] [[call]] [[BIS_fnc_returnVehicleTurrets]];</code>
|x1= <sqf>[configFile >> "CfgVehicles" >> "B_MBT_01_TUSK_F"] call BIS_fnc_returnVehicleTurrets;</sqf>


|seealso= [[allTurrets]], [[BIS_fnc_allTurrets]]
|seealso= [[allTurrets]] [[BIS_fnc_allTurrets]]
}}
}}
[[Category:{{Name|arma2}}: Functions|{{uc:returnVehicleTurrets}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:returnVehicleTurrets}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:returnVehicleTurrets}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:returnVehicleTurrets}}]]

Latest revision as of 12:48, 13 July 2022

Hover & click on the images for description

Description

Description:
Return the path to all turrets and sub-turrets in a vehicle.
Arma 3
Does not seem to work in Arma 3. Use allTurrets and BIS_fnc_allTurrets instead.
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[configEntry] call BIS_fnc_returnVehicleTurrets
Parameters:
configEntry: Config - vehicle config entry
Return Value:
Array - turret paths ([0], [0, 1] format)

Examples

Example 1:
[configFile >> "CfgVehicles" >> "B_MBT_01_TUSK_F"] call BIS_fnc_returnVehicleTurrets;

Additional Information

See also:
allTurrets BIS_fnc_allTurrets

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