• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help with waygate ability

Status
Not open for further replies.

King lucas01

K

King lucas01

Is there any way that you can make the waygates only accept units that are friendly? Or do i have to do an "enter region" trigger and only use the waygate as a decoration? i don't like enter region triggers because sometimes they doesn't work and you have to walk in and out of the region many times before it works.
 
EDIT:
Ooooooohhhh, a waygate! Had totally forgot about those.

Isn't it enough to set the owner of the Waygate to someone who's in the same force as the players that are friendly with it?

EDIT 2:
Ok, i think i found a solution.

Go to your object editor, look up Waygate under Neutral Passive - Buildings.
Remove "Waygate ability" from it.

Make a trigger:
  • Waygate 1
    • Events
      • Unit - A unit comes within 100.00 of Way Gate 0000 <gen>
    • Conditions
      • ((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
    • Actions
      • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
      • Wait 0.50 seconds
      • Unit - Move (Triggering unit) instantly to (Center of Rect 000 <gen>)
 
No, i've tried that, and setting targets allowed to friend doesn't work either. Can i use any kind of trigger that can change who can use it?
 
Now it work!! THANKS!
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top