Variables
Ppgtjmad edited this page Sep 25, 2022
·
8 revisions
There are 4 variables you can check while in game (using the getVariable command):
Holds player's XP
Target
Player object
Type
ARRAY
Value
["X",Y] where "X" is the rank & Y is the XP amount
Example
_unit getVariable "HG_XP";
Holds player's cash amount
Target
Player object
Type
INTEGER
Value
X where X is the unit cash amount
Example
_unitCash = _unit getVariable "HG_Cash";
Holds player's bank amount
Target
Player object
Type
INTEGER
Value
X where X is the unit bank amount
Example
_unitBank = _unit getVariable "HG_Bank";
Holds player's kills count
Target
Player object
Type
INTEGER
Value
X where X is the unit kills count
Example
_unitKills = _unit getVariable "HG_Kills";