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 )
Question
zulu
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?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now