- Joined
- Nov 12, 2006
- Messages
- 765
Hello fellow map makers, i need help with removeing a special effect. Once a certain building is created (incom and KDY seen below), i create a special "space dock" ontop of it. Now when the host unit (incom and KDY) dies, the special effect is not removed. For this situation the "destroy last created special effect" feature will not work. Can anyone help me set up a trigger to destroy the special effect?
Events
Unit - A unit Finishes construction
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Incom Shipbuilding
(Unit-type of (Triggering unit)) Equal to KDY Shipbuilding
Actions
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using drydock_squished.mdx
I also had a non-trigger solution i have not tried yet. If i do somthing like..
event - a unit dies
condition - unit = incom/kdy
action - pick every unit within 5 of triggering unit
remove picked unit
Will this work to destroy the special effect around it? if i make the special effect into a unit first (right now its running straight out of the imported model file), and then when creating the effect i use "drydock unit" to create it - will this work for the above trigger?
This thread has helped 1 person!
Has this thread helped you? [self="http://www.hiveworkshop.com/forums/newreply.php?do=newreply&noquote=1&p=689606"]Leave a comment[/self]!
Events
Unit - A unit Finishes construction
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Incom Shipbuilding
(Unit-type of (Triggering unit)) Equal to KDY Shipbuilding
Actions
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using drydock_squished.mdx
I also had a non-trigger solution i have not tried yet. If i do somthing like..
event - a unit dies
condition - unit = incom/kdy
action - pick every unit within 5 of triggering unit
remove picked unit
Will this work to destroy the special effect around it? if i make the special effect into a unit first (right now its running straight out of the imported model file), and then when creating the effect i use "drydock unit" to create it - will this work for the above trigger?
This thread has helped 1 person!
Has this thread helped you? [self="http://www.hiveworkshop.com/forums/newreply.php?do=newreply&noquote=1&p=689606"]Leave a comment[/self]!
Last edited by a moderator: