DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
SetClassVar()
static proto
int
EnScript::SetClassVar
(
Class
inst
,
string
varname
,
int
index
,
void
input
)
static
private
Dynamic write to variable by its name.
Аргументы
inst
when inst == NULL, it's for global variable, otherwise it's class member
varname
index
Is index when variable is array
input
Input
variable must be of the same type!
Возвращает
int
Returns true(1) when success
Print
(myClass.m_Counter);
>>
m_Counter
= 0
bool
success =
EnScript
.SetClassVar(myClass,
"m_Counter"
, 0, 5.0);
Print
(myClass.m_Counter);
Print
(success);
>>
m_Counter
= 5
>> success = 1
m_Counter
int m_Counter
Определения
DayZGame.c:704
Print
proto void Print(void var)
Prints content of variable to console/log.
EnScript::EnScript
void EnScript()
Определения
EnScript.c:168
EnScript
Создано системой
1.13.2