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

[Trigger] What is the faster

Status
Not open for further replies.
You can also optimize your setunitx/y if you use it many times by creating a setunitXY function :

JASS:
function SetUnitXY takes unit u, real x, real y returns nothing
    call SetUnitX(u, x)
    call SetUnitY(u, y)
endfunction

And setunitx/y is better for do some things like slide trigger, or something else which must don't interrupt orders.
 
Status
Not open for further replies.
Top