11-29-2015, 04:22 PM
I made this health regen script, or stole a few, combined the bits and added to it^^ but it is for player units and i want to turn it into a script that works where it only needs to be called in the unit init. Basically something that does not require player to be fulfilled in order to work that works for ai and any number of units that are playable. Thanks
Code:
while {alive player} do
{
_t = time;
waitUntil {time - _t > 1};
if (damage player > 0) then
{
_newDamage = (damage player) - 0.1;
player setdamage _newDamage;
};
sleep 0.05;};
If i were to ask someone to move some furniture i would ask the guy at the bar eating bar food