Cloned life bars
Posted: Sat Jan 09, 2016 7:06 pm
Hey everyone, how do you make clones of an actor that creates a life bar that shows the clone's own individual HP / MaxHP? I tried with DarkParadox's HP bar (rpgbar) script...
Apparently this code does it right, but the "creator" is apparently identified is the most recent clone of the actor made, not individual clones so the bars are all identical... How do we fix this?
- Code: Select all
if(creator.HP>0)
{
HPDraw(creator.HP,creator.MAXHP, 'b');
}
else
{
DestroyActor("Event Actor");
}
Apparently this code does it right, but the "creator" is apparently identified is the most recent clone of the actor made, not individual clones so the bars are all identical... How do we fix this?