• 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- action periodic event

Status
Not open for further replies.

007

007

Level 6
Joined
May 3, 2009
Messages
175
i want to make that if a unit enters a region a unit of that kind appears somewhere every ten seconds. ive done everything but the 10 seconds. i just dont find where to do that. anyone help?
 
  • Trigger
  • Events
    • Unit - A unit enters (Your region <gen>)
  • Conditions
  • Actions
    • Set UnitType = (Unit-type of (Triggering unit))
    • Trigger - Turn off (This trigger)
    • Trigger - Turn on Trigger2 <gen>
  • Trigger2
  • Events
    • Time - Every 10.00 seconds of game-time
  • Conditions
  • Actions
    • Set Point1 = (Your point)
    • Unit - Create 1 UnitType at Point1 for (Player X) facing default building degrees
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 1
Joined
Jan 26, 2009
Messages
1
I think you need to triggers to activate this..

just try..

Event
Unit Enters <Region 1>
Condition
Unit-type of Entering unit is equal to X
Actions
Set Unit = Entering Unit (Create a variable unit with type unit)
Set UnitPosition = Position of (Entering Unit) (Create a variable with type Point)
Trigger on <Enter act>

------------------------------

Event
Time - Every 10 seconds of game time.
Condition
Actions
[Just find the one similar to this, I don't have WE here]
Create 1 Unit-Type of Unit in UnitPosition facing default facing degrees.
call RemoveLocation(udg_UnitPosition)
 
Status
Not open for further replies.
Top