• 🏆 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!

Help with teleport trigger +rep

Status
Not open for further replies.
Level 9
Joined
Jul 11, 2009
Messages
294
Hey guys,


Apologise for posting so much in World Editor Help Zone as I've already lost touch with map making.


Just like to request if anyone here knows how to make a teleport skill in a building?

For example, my building called "headquarter" can summon my main hero back, however has a casting time of 3 seconds and the effect is similar to teleport.

How can I do so?

Thanks in advance. :thumbs_up:
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
Create a Unit-Target ability with a 3 seconds casting time. Then make a trigger like this:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your Ability)
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Unit - Move (Target unit of ability being cast) instantly to Temp_Point
      • Custom script: call RemoveLocation( udg_Temp_Point )
      • Custom script: set udg_Temp_Point = null
 
Level 9
Joined
Jul 11, 2009
Messages
294
Create a Unit-Target ability with a 3 seconds casting time. Then make a trigger like this:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your Ability)
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Unit - Move (Target unit of ability being cast) instantly to Temp_Point
      • Custom script: call RemoveLocation( udg_Temp_Point )
      • Custom script: set udg_Temp_Point = null

Hey UndeadImmortal,

Thanks for the trigger, but how do I do so to make the unit invulnerable while teleporting and at the same time show the special effect that it is teleporting? Without leaks of course!

Thanks. :wink:
 
Level 5
Joined
Oct 10, 2012
Messages
109
simple
search for unit - invulnerable trigger
make the target unit of ability being cast invulnerable
create special effect with teleport model at position of target unit of abilit being cast
Wait till casting time end
Make target vulnerable
Remove last created special effect
 
Status
Not open for further replies.
Top