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

 



Introduced in

Version:VBS3 20.2.0, VBS4 20.1.0

Description

Description:

Sets the Land 155 (HX45M and HX77) bridge-laying global variables.

The Land 155 global variables are:

  • "ANIM_COEFF" - Coefficient that controls the bridge-laying animation speed.

Syntax

Syntax:

[land155_var, value] call fn_vbs_dsb_land_155_global_vars

Parameters:
  • land155_var: String - Land 155 global variable name.
  • value: Number - Land 155 global variable value.
Return Value:Boolean - Returns true, if the global variable exits; false, if the global variable does not exist, or the value is non-numeric.

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.

Examples

Examples:
_result = ["ANIM_COEFF", 0.1] call fn_vbs_dsb_land_155_global_vars; // the animation speeds is multiplied by 0.1, meaning the animation speed is 10 times faster than the default one.

Additional Information

See also:
Multiplayer:
Problems: