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

Cast Teleport(GUI) Request

Status
Not open for further replies.
Level 9
Joined
May 9, 2009
Messages
536
just do this

Event
If a Target Starts the Effect of an ability
Condition
Ability being cast equal to <Your Ability>
Actions
Move Casting unit to position of Target of Ability being cast
<These below lines are for special effects>
Create special effect <Your Special Effect> at position of Target of ability being cast
Destroy Last Created special effect
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
To avoid leaks create a point variable and replace:
  • Actions
    • Move Casting unit to position of Target of Ability being cast
with:
  • Actions
    • Set VARIABLE = Position of (Target of Ability being cast)
    • Move Casting unit to VARIABLE
    • Custom script: call RemoveLocation(udg_VARIABLE)
 
Status
Not open for further replies.
Top