Home   Help Search Login Register  

Author Topic: Clearing dead units  (Read 1420 times)

0 Members and 1 Guest are viewing this topic.

Wedgie_Mutha

  • Guest
Clearing dead units
« on: 10 Jul 2003, 11:39:00 »
Hi all,

does anyone know how to clear dead units from the map. I have a mission that involves a lot of units, once they start piling up, the game begins to crawl...

Id like to have a trigger/script that will clear dead units from the map.

Any ideas?

Thanks
Wedgie

Offline rhysduk

  • Former Staff
  • ****
Re:Clearing dead units
« Reply #1 on: 10 Jul 2003, 11:43:11 »
HI Wedgie.. there is one in the Editors Depot here...

http://www.ofpec.com/editors/browse.php?browsewhat=1&start=75

if you can get it to work you will be a god damn genius mate because no-one else can get it to work...

sorry i couldnt be of much more help.

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Wedgie_Mutha

  • Guest
Re:Clearing dead units
« Reply #2 on: 10 Jul 2003, 15:38:21 »
bump-ity bump.  ;D

Wedgie_Mutha

  • Guest
Re:Clearing dead units
« Reply #3 on: 11 Jul 2003, 09:44:12 »
Please, anyone got any ideas? anyone want to volunteer to write the script for me?  ::)

borrowed soap

  • Guest
Re:Clearing dead units
« Reply #4 on: 11 Jul 2003, 17:20:15 »
someone named Phelican in the scripting part of these forums is claiming to have a script that works, i have requested that he email me that script.
he should post it here at the forums, because this question is currently being asked in two forums over three different topics, and i see it frequently.
i have just finished spending too much time with this same script, and although i got over the error message with proper syntax, i could never get those bodies to leave either.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Clearing dead units
« Reply #5 on: 11 Jul 2003, 19:43:17 »


 :D  Read THIS thread  :-*





deaddog

  • Guest
Re:Clearing dead units
« Reply #6 on: 11 Jul 2003, 22:47:19 »
You can only delete dead bodies a short time after their death, typically 30-45 seconds.  After that, you can't refer to that unit anymore.  I believe it is the same reason why "count units groupname" takes a while to get the correct number of units after some have been killed.  "alive _x" count units groupname works instantly.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Clearing dead units
« Reply #7 on: 12 Jul 2003, 12:23:33 »
...I believe it is the same reason why "count units groupname" takes a while to get the correct number of units after some have been killed.  "alive _x" count units groupname works instantly.

In my experience, the count command doesn't update instantly because the leader of the unit's group needs to know that unit is dead.

So if you hear the "Oh no, x is down" then count will 'update' ;)

That may be why you can't reference a dead body (the leader knows the unit is dead, hence it's not the unit anymore), I'm not really sure. I've never played around with it much ;)