Recent content by Leazy

  1. Leazy

    Finish animation when leap finishes

    Thank you! :-)
  2. Leazy

    Finish animation when leap finishes

    Hello! I'm making a leap spell, and I want the leaping unit to finish the spell animation when it reaches the landing point. The leaping distance may vary. Can anyone help me out with the math here? (I'm trying to determine which animation speed to give the unit) The leaper (Caster) travels...
  3. Leazy

    Check if a unit is facing another unit

    All right. However, I can't find this option in the trigger list "Sector facing"
  4. Leazy

    Check if a unit is facing another unit

    Hello! I'm looking for a simple way to check if unit A is facing (looking at) unit B. Facing meaning that unit B is maximum of +/- 45 degrees in front of unit A. I saw this: (Cos((Sector facing - (Angle from Loc1 to Loc2)))) Greater than or equal to 0.766 Here...
  5. Leazy

    Check that unit is facing other unit

    I did this: Facing Target Events Conditions Ability_Continue Equal to True Actions Set Point[1] = (Position of Targ) Set Real[1] = (Facing of Targ) Set Real[2] = (Facing of Caster) If (All Conditions are True) then do (Then Actions) else do...
  6. Leazy

    Check that unit is facing other unit

    Facing Target Events Conditions Ability_Continue Equal to True Actions Set Point[1] = (Position of Targ) Set Real[1] = (Facing of Targ) Set Real[2] = (Facing of Caster) If (All Conditions are True) then do (Then Actions) else do (Else Actions)...
  7. Leazy

    Check that unit is facing other unit

    I'm not making my abilities the wc3 way, but the "WoW way", meaning you right click a guy and then he's your target. Then you use no target spells, which will still cause an effect on your target. Therefor I have to check that the caster is facing the target (and also that the target is in...
  8. Leazy

    Check that unit is facing other unit

    Facing Target Events Conditions Ability_Continue Equal to True Actions Set Point[1] = (Position of Targ) Set Real[1] = (Facing of Targ) Set Real[2] = (Facing of Caster) If (All Conditions are True) then do (Then Actions) else do (Else Actions)...
  9. Leazy

    Check that unit is facing other unit

    I want the caster to face the target :) I just took a backstab ability and tried to modify it myself, but I'm sure it's wrong
  10. Leazy

    Make unit only attack on command

    I don't really have the time for that, this is just a hobby of mine I like to do now and then
  11. Leazy

    Check that unit is facing other unit

    Hello! I need help with a kind of "reverse backstab ability". I want to check that udg_Caster is facing udg_Targ. This is what I got so far (looking on other backstab abilities I understood I need these things, but probably in other order with other numbers for checking if unit is facing other...
  12. Leazy

    Make unit only attack on command

    Thanks for the help, but the range actually had to be set to 1 for this to work, if it was at zero they would attack as if they had regular acquisition range :) Edit: Units will still aid allies, and if attacked they will defend themselves. Any tips on how to solve this?
  13. Leazy

    Make unit only attack on command

    Hello! I was wondering if anyone got a clever way of making a unit only attack when I order it to attack something? I used worker classification, but that will make the unit defend itself once attacked by other worker-classified units. I do not want that. Any ideas? Thanks in advance :)
  14. Leazy

    Math-related problem

    Of course, I should have thought of that :) Thanks m8!
  15. Leazy

    Math-related problem

    Hello! I downloaded this model: http://www.hiveworkshop.com/forums/models-530/progressbardummy-218777/ It is a progress bar dummy which takes 1 second to fully load. Now I need help to decide the formula to decide the animation speed depending on the casting time. As I mentioned, the loading...
Top