xenidius93 wrote:I don't understand , so how it should looks like? Where I should to use getclone?
DestroyActor("Collide Actor");
health = health - 1;
DestroyActor("Event Actor");
collide.health = collide.health - 1;
skydereign wrote:
- Code: Select all
DestroyActor("Collide Actor");
health = health - 1;
xenidius93 wrote:So what's wrong? Why it doesn't working? This is the project, please check it out: http://sendfile.pl/256362/test_zycia_wrogow.zip
mindcontrol wrote:On enemy collision with shoot -> enemy.hp=enemy.hp-2;
hp=hp-2;
hp = hp - 2;
if (hp <= 0)
{
DestroyActor("Event Actor");
}
enemy.hp=enemy.hp-2;
hp=hp-2;
lcl wrote:If you write enemy.hp there, it'll use enemy.0's hp variable. What you want to do is to just use hp, because we're in the enemy actor's own event.
Users browsing this forum: No registered users and 1 guest