1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] Wonder if it leaks

Discussion in 'World Editor Help Zone' started by Shaddark, Feb 12, 2020.

  1. Shaddark

    Shaddark

    Joined:
    Jun 12, 2016
    Messages:
    73
    Resources:
    0
    Resources:
    0
    I'm bad at Jass, doing everything in GUI, so I have a question, does this leak?

    • Custom script: call MoveLightningEx(udg_BScorpion_tail_lightning, true , GetLocationX(udg_temp_point4), GetLocationY(udg_temp_point4), GetLocationZ(udg_temp_point4) + 300, GetLocationX(udg_temp_point3), GetLocationY(udg_temp_point3), GetLocationZ(udg_temp_point3))


    I'll remove temp_point4 and 3 but I just changed the source location to temp_point4+300 height, in my mind GetLocationXYZ is only a real number but idk if it creates a point to change the Z of the lightning.
     
  2. JC Helas

    JC Helas

    Joined:
    Oct 19, 2014
    Messages:
    126
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Its just fine, when getting a locations XYZ it will returned to real then you just add 300 to target A's Z.
     
  3. Shaddark

    Shaddark

    Joined:
    Jun 12, 2016
    Messages:
    73
    Resources:
    0
    Resources:
    0
    Thank you, friend! :3