Remove fnc_usec_resetWoundPoints from server

This function uses player as object which does not work on the server.

Thx to mmrsz
This commit is contained in:
A Man
2022-06-03 20:43:55 +02:00
parent abce13a659
commit 99f5acee6e
2 changed files with 12 additions and 6 deletions

View File

@@ -265,11 +265,13 @@ fnc_usec_playerHandleBlood = {
};
};
fnc_usec_resetWoundPoints = {
{
player setVariable["hit_"+_x,false,true];
} forEach USEC_typeOfWounds;
player setVariable ["USEC_injured",false,true];
if (!isDedicated) then {
fnc_usec_resetWoundPoints = {
{
player setVariable["hit_"+_x,false,true];
} forEach USEC_typeOfWounds;
player setVariable ["USEC_injured",false,true];
};
};
fnc_usec_damageBleed = {