Introduced in

Version:1.20

Description

Description:Returns the configuration of the specified turret of the specified vehicle. This can then be used to extract parameters from the turret configuration.

Syntax

Syntax:[vehicle, turret] call fn_vbs_getTurretCfg
Parameters:
  • vehicle: String or Object - String class name of vehicle, or vehicle object (V1.30+).
  • turret: Array - Turret path (for example, [0,1]).
Return Value:Config-2

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:

Additional Information

See also: listAllTurrets, fn vbs getTurret
Multiplayer: 
Problems: 

Notes