Staredit Network > Forums > SC2 Assistance > Topic: Kill trigger
Kill trigger
Aug 9 2010, 9:17 pm
By: Vincent  

Aug 9 2010, 9:17 pm Vincent Post #1





Basically I want a better version of the trigger above that will allow me to put any carrier in the range, instead of just a specific one.

It would allow me to remove the carrier from the map and have it spawn later with a working kill trigger.



None.

Aug 9 2010, 9:38 pm Temp Post #2



Don't do this in triggers, do this in the data editor. You need a behaviour on the carrier which has a search effect, search effect causes a kill effect. If you need a better explanation on how to do it just ask.



None.

Aug 9 2010, 9:43 pm Devourer Post #3

Hello

He needs a better explanation, he is new to the editor as he already told me.



Please report errors in the Staredit.Network forum.

Aug 9 2010, 9:59 pm Temp Post #4



Ok I have attached an example map which does what you asked.

Every unit you want to have this happen to will need the behaviour KillUnits applied to it. You can set that in the unit properties for that unit in the data editor or through triggers, I have applied it to carriers through the data editor.

The KillUnits behaviour causes a periodic effect (SearchKill) which is a Search Area effect. This effect will search for units in a specified radius around the unit and cause whatever effect you want. For our purposes it is the KillSelf effect which kills the unit the behaviour is applied to.

The search area effect has filters which include/exclude types of units or hostility status from the search. I have excluded self and included cloaked but you may want it so only hostile units will trip the effect.

I am not that great at explaining things so ask if you are having trouble with anything.

Attachments:
SelfKillExample.SC2Map
Hits: 4 Size: 168.48kb



None.

Aug 9 2010, 10:51 pm Vincent Post #5



Quote from Temp
Ok I have attached an example map which does what you asked.

Every unit you want to have this happen to will need the behaviour KillUnits applied to it. You can set that in the unit properties for that unit in the data editor or through triggers, I have applied it to carriers through the data editor.

The KillUnits behaviour causes a periodic effect (SearchKill) which is a Search Area effect. This effect will search for units in a specified radius around the unit and cause whatever effect you want. For our purposes it is the KillSelf effect which kills the unit the behaviour is applied to.

The search area effect has filters which include/exclude types of units or hostility status from the search. I have excluded self and included cloaked but you may want it so only hostile units will trip the effect.

I am not that great at explaining things so ask if you are having trouble with anything.

Thank you soo much, works brilliantly.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:35 pm]
Symmetry -- though mine's probably worse
[03:35 pm]
Symmetry -- That certainly sounds similar to what I've made
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
Please log in to shout.


Members Online: lil-Inferno