textNumber = health;
health = //How much health you want\\;
health = health -//how much you want to take away\\;
if("whatever your health variable is here"<1)
{
"create actor event here"
}
stat1=1;
stat2=1;
stat3=1;
health=999
healthmax=(stat1+stat2)*5;
textNumber=healthmax;
textNumber=health;
//if it goes over max, make it equal max
if(health>healthmax)
health=healthmax;
//if it goes under 0, make it 0
if(health<0)
health=0;
healthmeter.textNumber = health;
if(health>healthmax)
healthmeter.textNumber = healthmax;
if(health<000)
healthmeter.textNumber = 000;
int variable;
Users browsing this forum: Google [Bot] and 1 guest