BIS fnc getTurrets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *O([a-z ])" to "$1 - o$2")
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Object Manipulation


|1.00|= Game version
|descr= Returns vehicle turrets.
____________________________________________________________________________________________


| <pre>/*
|s1= [input, outputType] call [[BIS_fnc_getTurrets]]


Description:
|p1= input: [[Object]] or [[String]] - object or object's class name
Return vehicle turrets


Parameter(s):
|p2= outputType: [[Config]] or [[Array]] - output type (array of config paths or IDs)
0: OBJECT or STRING (classname)
1: CONFIG or ARRAY - output type (array of config paths or IDs)


Returns:
|r1= [[Array]] of [[Config|configs]] or [[Array]] - vehicle turrets
ARRAT of CONFIGs or ARRAYs
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>[vehicle player] call BIS_fnc_getTurrets;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_getTurrets]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[moveInTurret]] [[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: Objects|{{uc:getTurrets}}]]
[[Category:Functions|{{uc:getTurrets}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getTurrets}}]]

Latest revision as of 15:44, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns vehicle turrets.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[input, outputType] call BIS_fnc_getTurrets
Parameters:
input: Object or String - object or object's class name
outputType: Config or Array - output type (array of config paths or IDs)
Return Value:
Array of configs or Array - vehicle turrets

Examples

Example 1:
[vehicle player] call BIS_fnc_getTurrets;

Additional Information

See also:
moveInTurret 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