Update messing variable in pz_feed.sqf

Messing now has a third parameter for dayz_nutrition.
This commit is contained in:
ebaydayz
2016-05-13 17:02:44 -04:00
parent 33c3c7601f
commit 914162c698
2 changed files with 6 additions and 2 deletions

View File

@@ -53,7 +53,11 @@ if !(alive _item) then {
r_player_blood = r_player_bloodTotal;
};
player setVariable ["messing",[dayz_hunger,dayz_thirst],true];
//Publish messing
player setVariable ["messing",[dayz_hunger,dayz_thirst,dayz_nutrition],false]; //No need to be sent to everyplayer
PVDZ_serverStoreVar = [player,"messing",[dayz_hunger,dayz_thirst,dayz_nutrition]]; //update server side only
publicVariableServer "PVDZ_serverStoreVar";
player setVariable["USEC_BloodQty",r_player_blood,true];
player setVariable["medForceUpdate",true];