DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetClassVar()

static proto int EnScript::GetClassVar ( Class inst,
string varname,
int index,
out void result )
staticprivate

Dynamic read of variable value by its name.

Аргументы
instWhen inst == NULL, it's for global variable, otherwise it's class member
indexIs index when variable is array
[out]resultVariable must be of the same type!
Возвращает
int true when success
float count = 0;
bool success = EnScript.GetClassVar(myClass, "m_Counter", 0, count);
Print(count);
Print(success);
>> count = 5
>> success = 1
proto void Print(void var)
Prints content of variable to console/log.
void EnScript()
Определения EnScript.c:168