Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Introduced in

Version:1.20

Description

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

Syntax

Syntax:[vehicle, turret] call fn_vbs_getTurretCfg
Parameters:
string classname
  • String class name of vehicle, or vehicle object (
v1
turret
  • Turret path (
eg:
  • 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