• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] unit in range problem

Status
Not open for further replies.
ok ill try to i have
the event set to detect unit in range of unit1
the condition is set to if boolean true
the action is set to kill triggering unit
but if a unit enters the area and the boolean is false (works fine) what doesnt work is when it changes from false to true and the unit is already in the range it doesnt kill him unless i take him out of the range then back in

u know wat i mean ?
 
Level 18
Joined
May 11, 2012
Messages
2,103
ok ill try to i have
the event set to detect unit in range of unit1
the condition is set to if boolean true
the action is set to kill triggering unit
but if a unit enters the area and the boolean is false (works fine) what doesnt work is when it changes from false to true and the unit is already in the range it doesnt kill him unless i take him out of the range then back in

u know wat i mean ?

May I see your trigger or map? I will be able to help better if I understand your problem better..
 
its just units in range my map has traps i guess u could say when ur in the trap u die but i needed to give ppl a warning so they could get out i use a boolean variable true means trap is active false means trap is seen by players when it switches from false to true and a unit is in range it doesnt do anything until the unit wlks out of range then back into range then it gets killed
 
Level 9
Joined
May 30, 2008
Messages
430
Unit enters range is even that fires only once and will not fire again at least the triggering unit don't leave the detection range and reenter again.

Solutions:
Use Wait or create timer when a unit enters within range of the unit. Then start the timer and when the timer expire start another trigger that check if there are units within range of the unit and kills them. Note that the trigger that activate the time should be turned off or the timer will restart, then use wait and turn it on.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
I guess someone asked for similar thing like that, I will search my old topics and post the link here perhaps it could help you.

<<< EDIT >>>

Click here

The post may be unrelated to your request but you could get the idea of the triggers

Anyway, if you still having problem making it; I will try to make a custom made trigger for you.
 
Last edited:
Status
Not open for further replies.
Top