I have a script Im trying to implement. When the player uses the item it will cause them to become very thirsty/hungry. Everything about the script works as it should except that part and Im not sure what Im doing wrong.
if (random(_infectionChance) < 1) then {
dayz_lastDrink = time;
dayz_thirst = 1;
dayz_lastMeal = time;
dayz_hunger = 1;
player setVariable ["messing",[dayz_hunger,dayz_thirst],true];
//Ensure Control is visible
_display = uiNamespace getVariable 'DAYZ_GUI_display';
(_display displayCtrl 1301) ctrlShow true;
Question
DangerRuss
I have a script Im trying to implement. When the player uses the item it will cause them to become very thirsty/hungry. Everything about the script works as it should except that part and Im not sure what Im doing wrong.
} else {
Link to comment
Share on other sites
0 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