• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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