The_Gambit
New member
Trying to give Wolverine a constant +1 health per second no matter what animation. I am currently trying "ondrawscript data/scripts/regen1.c"
regen1.c
void main()
{// Spend some life
void self = getlocalvar("self");// get caller
void MaxHP = getentitypropery(self, "maxhealth"); //get max health
void Life = getentityproperty(self,"health"); //get health
if (Life=<MaxHP){
changeentityproperty(self, "health", Life+1); //add health
delay 1000; // wait 1 second
}
regen1.c
void main()
{// Spend some life
void self = getlocalvar("self");// get caller
void MaxHP = getentitypropery(self, "maxhealth"); //get max health
void Life = getentityproperty(self,"health"); //get health
if (Life=<MaxHP){
changeentityproperty(self, "health", Life+1); //add health
delay 1000; // wait 1 second
}