• 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.

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