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

Need help with waygate ability

Status
Not open for further replies.
Level 2
Joined
Mar 15, 2008
Messages
7
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.
 
Level 16
Joined
Mar 26, 2004
Messages
569
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>)
 
Level 2
Joined
Mar 15, 2008
Messages
7
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?
 
Status
Not open for further replies.
Top