humanity reset per perl?

zEro

New Member
Does anyone know how I may reset player's humanity per perl?

build is Bliss.

as some little .pl script.
 
I meant for all players not just for one.

Would like to run it once a week, to get rid of the ocean bug spawner.
 
this is untested, and might kick players for script restriction
this should reset the players humanity before they spawn
save as Human.sqf place in mission.pbo
Code:
HumanOrBandit = (player getVariable"humanity");
if (HumanOrBandit = < 2500) then {
player setVariable ["humanity", 2500];
};

in init.sqf go to the bottom of the file and add
Code:
[] execVM "Human.sqf";
 
Back
Top