Home   Help Search Login Register  

Author Topic: After createunit i need better deleteing when dead  (Read 625 times)

0 Members and 1 Guest are viewing this topic.

Offline Kendo J

  • Members
  • *
  • Britain Has more varieties of cheese than France
After createunit i need better deleteing when dead
« on: 04 Apr 2005, 16:51:55 »
Ok I have this problem that I have an area that is a spawn position... now as the baddies run away from this area into different positions they all get killed respectively. but some important units are already on the map. I don't want to delete them.

All the spawned units are resistance and east.

I need a good way of selectivley deleting units without using a script... just a simple trigger activation . my delete triggers will not activate if the player is present so you never see any spawing or deleting near you.

What i need is a command that allows me to delete all the resistance then later on the same one of east.

can anyone tell me the syntax for these commands?

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:After createunit i need better deleteing when dead
« Reply #1 on: 04 Apr 2005, 22:01:39 »
reallly no idea how the script will be... but I think you can use somethig wich "foreach unit this List" and set te trigger to setpos whereever is the player... and all dead enemy units inside the trigger won't be deleted...

sorry DK how to write it.. just an idea

Bye