DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
GetClassVar()
static proto
int
EnScript::GetClassVar
(
Class
inst
,
string
varname
,
int
index
,
out void
result
)
static
private
Dynamic read of variable value by its name.
Аргументы
inst
When inst == NULL, it's for global variable, otherwise it's class member
index
Is index when variable is array
[out]
result
Variable 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
Print
proto void Print(void var)
Prints content of variable to console/log.
EnScript::EnScript
void EnScript()
Определения
EnScript.c:168
EnScript
Создано системой
1.13.2