Page tree

Versions Compared

Key

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




Introduced in

Version:3.4

Description

Description:Converts a passed side string into the appropriate Side-2.

Syntax

Syntax:[sideString] call fn_vbs_sideFromString
Parameters:
: returns
  • - String with side name (see description). Not case-sensitive.
Return Value:

Side-2 - Can be:

Syntax

Syntax: [sideString] call fn_vbs_sideFromString Parameters:
  • sideString: String - String with side name (see description). Not case-sensitive.
Return Value: Side-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:
_side = ["independent"] call fn_vbs_sideFromString;
// returns resistance

Additional Information

See also: sideToString, WFSideText, side
Multiplayer: 
Problems: 

Notes