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.
[08:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
Please log in to shout.


Members Online: genevaexpression, RIVE, Roy, 5alicec3223fL1