• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Problem with adding an event to the trigger

Status
Not open for further replies.
Level 4
Joined
Feb 4, 2014
Messages
50
Hello,

I have declared the Unit variable in Trigger1
  • Trigger1
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Create 1 Rifleman for Player 12 (brown) ....
      • Set Unit_variable = (Last created unit)
      • Trigger - Add to Trigger2 <gen> the event (Unit - A unit comes within 50.00 of Unit_variable)
and in Trigger2 I have something like this; yet it doesn't seem to work at all:
  • Trigger2
    • Events
    • Conditions
      • (Unit-type of (Triggering unit)) equals to Footman
    • Actions
      • Unit - Kill (Triggering unit)

anyone knows what do I do to make it work? I am grateful in advance.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Does it work without the condition at Trigger2, if it still doesn't work try use a larger value then 50.00.
 
Status
Not open for further replies.
Top