Same actor with individual health/life. How to do this?
Posted: Thu Aug 18, 2011 9:40 pm
Hi, I created two of the same soldier. Like this:
CreateActor("soldier", "soldier", "(none)", "(none)", 498, 253, false);
CreateActor("soldier", "soldier", "(none)", "(none)", 261, 331, false);
Each one must have his own life value. I suppose I need to use actor variable, but I don't know how. I set the elife (enemy life) variable as actor variable, but it is affecting both soldiers. How to do? Thanks.
CreateActor("soldier", "soldier", "(none)", "(none)", 498, 253, false);
CreateActor("soldier", "soldier", "(none)", "(none)", 261, 331, false);
Each one must have his own life value. I suppose I need to use actor variable, but I don't know how. I set the elife (enemy life) variable as actor variable, but it is affecting both soldiers. How to do? Thanks.