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

Right Click Trigger?

Status
Not open for further replies.
Level 7
Joined
May 21, 2009
Messages
289
Ok I need this to happen....you have a unit selected and you right-click on a shimmering portal (tree/destructable) I need a trigger that lets that unit move instantly to a new region after right clicking? Im thinking it has something to do with Unit - Order.
 
Level 7
Joined
Jul 18, 2009
Messages
272
  • Teleport
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(smart))
      • (Target unit of issued order) Equal to <Your Portal>
    • Actions
      • Unit - Move (Ordered unit) instantly to (Center of <Your Region>)
      • Unit - Order (Ordered unit) to Stop
Order(smart) = rightclick
The stop order is to prevent the unit from running back to the portal after being teleportet.
As this is, you can teleport from anywhere on the map as long as the portal is visible. To prevent that, you need a condition like "Distance between position of ordered unit and position of <Your Portal> less than X".
 
Status
Not open for further replies.
Top