Hello,
i'd like to change a variable defined in the init dynamicly.
i execute a script in the init.sqf (checkhum.sqf) which checks players humanity and if humanity is greater 10K
values of "DZE_selfTransfuse_Values" should be raised.
checkhum.sqf: (called from inside the !is_dedicated brackets )
private['_hum'];
_hum=(player getVariable["humanity",0]);
if(_hum > 10000) then {
DZE_selfTransfuse_Values = [12000, 15, 300]
}
else {
DZE_selfTransfuse_Values = [1000, 15, 300]
};
My humanity is above 10K, but selfTransfuse_value is 1000, 15,300 and not 12000,15,300 as expected.
I also tried
if( (player getVariable["humanity",0]) > 10000) then {....
but without success.
What am i doing wrong?