• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Solved] Help with gateway ability

Status
Not open for further replies.
Level 22
Joined
Feb 3, 2009
Messages
3,292
I have a Portal building which has a spell Set Portal, this spell should set the way gate destination to target point of spell casted and add 15 seconds expiration timer to the building. But it doesn't work.
The building has the Waygate ability.

  • Set Gate Portal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Set Portal
    • Actions
      • Region - Center PortalLoc <gen> on (Target point of ability being cast)
      • Neutral Building - Set (Triggering unit) destination to (Center of PortalLoc <gen>)
      • Unit - Create 1 Bombard [ Warn Dummy] for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
      • Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
      • Unit - Add a 30.00 second Generic expiration timer to (Triggering unit)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Why do you need the region for?

->

  • Untitled Trigger 010
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Set Target Point
    • Actions
      • Neutral Building - Set (Triggering unit) destination to (Target point of ability being cast)
      • Unit - Create 1 Footman for (Triggering player) at (Target point of ability being cast) facing Default building facing degrees
      • Unit - Add a 5.00 second Generic expiration timer to (Triggering unit)
      • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
^leaks
 
Status
Not open for further replies.
Top