BIS fnc turretConfig: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{Function|Comments= ____________________________________________________________________________________________ | arma3dev |Game name= |1.93|Game version= ________________...") |
Killzone Kid (talk | contribs) (format) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| vehicle call [[BIS_fnc_turretConfig]] |Syntax1= | | [vehicle, turret] call [[BIS_fnc_turretConfig]] |Syntax1= | ||
|p1= vehicle: [[Object]] or [[String]] - actual vehicle or vehicle type |Parameter1= | |p1= vehicle: [[Object]] or [[String]] - actual vehicle or vehicle type |Parameter1= | ||
| | |p2= turret: [[Array]] - turret path |Parameter2= | ||
| [[Config]] - turret config or [[configNull]] |Returnvalue1= | | [[Config]] - turret config or [[configNull]] |Returnvalue1= |
Revision as of 11:17, 1 May 2019
Description
- Description:
- Returns vehicle turret config for the turret given by the turret path. Using [-1] for turret path returns vehicle config.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [vehicle, turret] call BIS_fnc_turretConfig
- Parameters:
- vehicle: Object or String - actual vehicle or vehicle type
- turret: Array - turret path
- Return Value:
- Config - turret config or configNull
Examples
- Example 1:
getNumber (["B_APC_Wheeled_01_cannon_F", [0,0]] call BIS_fnc_turretConfig >> "hasGunner") > 0;
- Example 2:
getNumber ([car1, [-1]] call BIS_fnc_turretConfig >> "hasDriver") > 0;
Additional Information
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
[[Category:Introduced with arma3dev version 1.93]][[ Category: arma3dev: New Functions | BIS FNC TURRETCONFIG]][[ Category: arma3dev: Functions | BIS FNC TURRETCONFIG]]