• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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