HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Timed Corpse Removal With Unit Exceptions. Help!

10-21-2002, 09:28 PM#1
Guest
Okay what I want to be able to do is to have any corpse, except the marine unit type, to be removed from that map after five seconds after death. How do I accomplish this while excluding the marine unit type from the trigger?
10-21-2002, 09:40 PM#2
Insaniteus
Make a unit group variable

First Trigger
Event - periodic, every 0.01 seconds
Actions - Unit Group - Pick every unit in playable map area and do add picked unit to (Variable)
------------Unit Group - Pick every unit of type Marine and do remove picked unit from (Variable)

Next Trigger
Event - a unit owned by player dies
Condition - unit is unit group (Variable) equal to true
Action -Wait 5 seconds
---------remove dying unit from game

This should do it, although remove unit caused increased lag, especcially in a madness type map.

-The Great and Immortal Lord Imperialist Insaniteus-
----------------------I'm so smart, and handsome too!
10-21-2002, 10:24 PM#3
ChronOmega
event: unit dies

condition: unit is of type (marine = false [boolean]

action:for each integer from a to (number of players) do wait 5 sec. [this ive heard fixes the wait bug]
remove (dieing unit)
10-21-2002, 10:46 PM#4
Guest
Really? This will increase the lag?! This was suggested to me in another post where I was asking how to decrease the lag in my madness map. They said removing the corpses on a timer would do it. Arg :( Thank you for the feedback guys
10-22-2002, 05:42 AM#5
Insaniteus
Argh... Mythmon little SOB, "UPSTAGE ME WHY DON'T YA!!" Ok, you win this round, but NEXT TIME...next time...lol

-Insaniteus-
---------------------I hate it when people make me look dumb.

EDIT: WAIT! I GOT IT! If you want the corpses to vanish without using the bugged Remove unit trigger then you need to use
Action - Animation - set dying unit animation speed to 1000x. The corpses will vanish in no time flat! Let's se Mythman do THAT lol.
10-22-2002, 11:46 AM#6
Guest
does that work?
I like that idea
10-22-2002, 08:12 PM#7
Guest
oh yeah it works :) like a charm