Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.46

Description

Description:

Allows the given tank to either:

  • Stow barrel
  • Stow barrel instantly
  • Unstow barrel
  • Query the barrel stow status

When the barrel is stowed, it cannot be moved and is locked into position.

Syntax

Syntax:[flag, tank] call fn_vbs_stowBarrel
Parameters:
  • flag: Number - Can be:
    • 0 (Unstow Tank)
    • 1 (Stow Tank)
    • 2 (Stow Tank Instantly)
    • 4 (Is tank currently stowed?)
  • tank: Object - The tank that to stowed
Return Value:Boolean - Can the requested action be completed? If true, the action is already being done.


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:_retval = [2,Tank1] call fn_vbs_stowBarrel _retval = [0,Challenger1] call fn_vbs_stowBarrel

Additional Information

See also: 
Multiplayer: 
Problems:

Only works for Challenger 2 tanks.

Notes