I still have not resolved the problem so all advice is appreciated :D
Ok so im trying 2 get Units to Die when they come in contact with other units. I attached a region to the unit i want them to die to, when they come in contact. I have it written as --
I'm not to sure about attached region death to obstacle 1: unit. what is obstacle 1: unit? normally you attach the region to the unit to achieve this, for example:
oh jackolas i relized i changed it a bit so i didn't have 2 run to the part i changed it a bit so it would go faster in testing.
so im trying 2 attach the region to a Unit that is not on the map to begin with. a Unit that will be spawned.
Obstacle 1 unit (a variable) Which i have the region attached to now is coded as
Agent of Player 14 for (triggering unit)
so the actual code attaching the region to a unit is suppose 2 attach the region to all units of player 14. so its set as Region - attach death to obstacle 1 unit with offset (0,0),
I know the coding is wronge because its not working u dont have to keep posting it thanks..
I can see how you are confused. I'll let the real help come from the more experienced ones, but I can tell you why your second image's trigger is not working.
You have it set up so that if those units are all in those spots all at one time, then they die. You cannot have more than one event and expect the trigger to just run on one. You could have the trigger recognize the different events, probably with an OR function.
i did this an it worked. only problem is it resets the region to every time it creates a new unit so the units it already spawned have no effect. have an idea to change this? can u keep the region on multiple units?
No you can’t there is another trigger you can use though for muitiple units
Unit – Any Unit Enters a distance of 1.0 from (Closest unit to Point in (Any units in (Entire map) owned by player Any Player matching No Unit Filter, with at most Any Amount))
Mess around with that one ( Try to attach points, it depends on exactly how you are creating the units, please post the triggers and i may be able to help more )
Not sure if this help, as I'm still confused on what you want to do. Attaching a region to a unit will instantly move the region to your unit's location. It did not get updated when your unit move so it will stay there until you "attach" it again
I can see how you are confused. I'll let the real help come from the more experienced ones, but I can tell you why your second image's trigger is not working.
You have it set up so that if those units are all in those spots all at one time, then they die. You cannot have more than one event and expect the trigger to just run on one. You could have the trigger recognize the different events, probably with an OR function.
Pretty sure you're talking about conditions, not events. If you have a bunch of events in a trigger, the trigger will fire when one of these events occur. Think about it, how does it make sense to have it only fire when multiple events occur simultaneously? Events are instantaneous; they do not persist beyond a frame.
I believe the way events work in SC2 (and WC3) is that when you register an event to a trigger, the game registers an event hook so that when something happens that there is an event for, it knows to fire any triggers registered with this event. I don't know if this is true, but I generally imagine this to be how it works. I would do it like this if I had made WC3/SC2.
maybe make a dummy unit that has a behaviour aura, that does a search area effect, that applys instant fatal damage killing offf units that enter. and use target filters/validators to specify what units it hits.
so a "any unit enters region" , kill whatever does not work?
You are going to have to figure this one out in the data editor I would check for aura’s and see if you can make a instant death one >< I can’t figure out how to make it work!!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I still have not resolved the problem so all advice is appreciated :D
Ok so im trying 2 get Units to Die when they come in contact with other units. I attached a region to the unit i want them to die to, when they come in contact. I have it written as --
http://i258.photobucket.com/albums/hh277/run4funtrack/3-4.jpg
I have the other coding written as --
http://i258.photobucket.com/albums/hh277/run4funtrack/2-5.jpg
I even tried --
http://i258.photobucket.com/albums/hh277/run4funtrack/1.jpg
Can any1 help me?
Please sort out the images. Can't really help if i can't see what needs to be helped can i?
@wOlfLisK: Go
i have it corrected now thanks
http://i258.photobucket.com/albums/hh277/run4funtrack/1.jpg
that is never gone work.
I'm not to sure about attached region death to obstacle 1: unit. what is obstacle 1: unit? normally you attach the region to the unit to achieve this, for example:
Also, no idea what the first and last triggers are meant to do.
oh jackolas i relized i changed it a bit so i didn't have 2 run to the part i changed it a bit so it would go faster in testing.
so im trying 2 attach the region to a Unit that is not on the map to begin with. a Unit that will be spawned.
Obstacle 1 unit (a variable) Which i have the region attached to now is coded as
Agent of Player 14 for (triggering unit)
so the actual code attaching the region to a unit is suppose 2 attach the region to all units of player 14. so its set as Region - attach death to obstacle 1 unit with offset (0,0),
I know the coding is wronge because its not working u dont have to keep posting it thanks..
Attach the region to it when the unit is created
( Created unit ( Attach unit to last created unit )
I can see how you are confused. I'll let the real help come from the more experienced ones, but I can tell you why your second image's trigger is not working.
You have it set up so that if those units are all in those spots all at one time, then they die. You cannot have more than one event and expect the trigger to just run on one. You could have the trigger recognize the different events, probably with an OR function.
@Ash4meD: Go
i did this an it worked. only problem is it resets the region to every time it creates a new unit so the units it already spawned have no effect. have an idea to change this? can u keep the region on multiple units?
soo far ashamed could get it to somewhat work. lol
No you can’t there is another trigger you can use though for muitiple units
Unit – Any Unit Enters a distance of 1.0 from (Closest unit to Point in (Any units in (Entire map) owned by player Any Player matching No Unit Filter, with at most Any Amount))Mess around with that one ( Try to attach points, it depends on exactly how you are creating the units, please post the triggers and i may be able to help more )
Not sure if this help, as I'm still confused on what you want to do. Attaching a region to a unit will instantly move the region to your unit's location. It did not get updated when your unit move so it will stay there until you "attach" it again
@progammer: Go
ok that helped alot programmer guess im going to do ashamed way
so i did this http://i258.photobucket.com/albums/hh277/run4funtrack/3-5.jpg and it didn't work lol i dont get what u ment by mess around with attaching points
@UniqEscape:
I need to see the creating trigger!!!
@Ash4meD: Go
http://i258.photobucket.com/albums/hh277/run4funtrack/3-6.jpg
This is the Trigger that creates the units
Pretty sure you're talking about conditions, not events. If you have a bunch of events in a trigger, the trigger will fire when one of these events occur. Think about it, how does it make sense to have it only fire when multiple events occur simultaneously? Events are instantaneous; they do not persist beyond a frame.
I believe the way events work in SC2 (and WC3) is that when you register an event to a trigger, the game registers an event hook so that when something happens that there is an event for, it knows to fire any triggers registered with this event. I don't know if this is true, but I generally imagine this to be how it works. I would do it like this if I had made WC3/SC2.
I still have not resolved the problem so all advice is appreciated :D
@UniqEscape: Go
maybe make a dummy unit that has a behaviour aura, that does a search area effect, that applys instant fatal damage killing offf units that enter. and use target filters/validators to specify what units it hits.
so a "any unit enters region" , kill whatever does not work?
@UniqEscape:
You are going to have to figure this one out in the data editor
I would check for aura’s and see if you can make a instant death one
>< I can’t figure out how to make it work!!