BIS fnc returnVehicleTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |= Game name
|game2= arma2oa
|version2= 1.50


|1.00|= Game version
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| <pre>
|game4= arma3
/*
|version4= 0.50
File: fn_returnVehicleTurrets.sqf


Description:
|gr1= Vehicles
Function return the path to all turrets and sub-turrets in a vehicle.


Parameter(s):
|descr= Return the path to all turrets and sub-turrets in a vehicle.
_this select 0: vehicle config entry (Config)
{{Feature|arma3|Does not seem to work in {{arma3}}. Use [[allTurrets]] and [[BIS_fnc_allTurrets]] instead.}}


Returns:
|s1= [configEntry] call [[BIS_fnc_returnVehicleTurrets]]
Array of Scalars and Arrays - path to all turrets
*/


//Validate parameter count
|p1= configEntry: [[Config]] - vehicle config entry
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_returnVehicleTurrets]]; --> |= Syntax
|r1= [[Array]] - turret paths ([0], [0, 1] format)


|p1= |= Parameter 1
|x1= <sqf>[configFile >> "CfgVehicles" >> "B_MBT_01_TUSK_F"] call BIS_fnc_returnVehicleTurrets;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[allTurrets]] [[BIS_fnc_allTurrets]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Spawning|{{uc:returnVehicleTurrets}}]]
[[Category:Functions|{{uc:returnVehicleTurrets}}]]
[[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