Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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 :)
  5. 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...
  6. Leazy

    WIP Spell Breakers

    Hello! Lately I've been working on a map in which up to (6) Spell Breakers battle against each other. The goal is to get to a certain amount of points, points are gained by killing other Spell Breakers and doing events that constantly spawn (I.E: a flag spawns, take it and bring it to the...
  7. Leazy

    Reflect if missile comes in front, do not it it comes from behind

    Hello! I'm making a spell which reflects projectiles that hits the target in front of him. This is what I've got (with udg_Caster being the projectile and udg_Target being the target): Defend Reflect Events Conditions Actions Set Point[10] = (Position of Target)...
  8. Leazy

    Get Nearest Unit (GNU)

    Hello! I'm trying to make a trigger which easily allows me to get the nearest unit. This is what I've done, but it doesn't seem to work: Get Nearest Unit Events Conditions Actions Set GNU_Unit = No unit For each (Integer GNU_Loop) from 1 to (Integer((GNU_Range /...
  9. Leazy

    Change lightning effect height

    Hello! I got two questions: 1: If I want to create a lightning effect from Point[1] to Point[2] with a height if 200, how can this be done? 2: When I want to change the lightning effect to go from Point[1] to Point[3], can I just do this the GUI way and still have the 200 height, or do I...
  10. Leazy

    Make unit unmoveable - but still able to turn

    Hello! Any ideas on how I can make a unit temporary not able to move, but still turn? I know this is possible by setting its movement speed to 0, but that requires that I change the gameplay contacts to allow 0 movement speed which might result in units getting 0 movement speed when for...
  11. Leazy

    Prevent units from sliding against the wall when being knocked back

    Hello! I made a simple knock back system: Knockback Events Time - Every 0.03 seconds of game time Conditions Actions Unit Group - Pick every unit in Knockback_Group and do (Actions) Loop - Actions Set Caster = (Picked unit)...
  12. Leazy

    Need combat-ideas!!!

    Hello! I'm making a map in which I combine melee with range fighting. The range fighting is like in maps such as Warlock, Archer Wars etc; you target the location and shoot an arrow towards it, if an enemy is hit he takes damage, but he could just move to the side and dodge. I need ideas on...
  13. Leazy

    Changing items in stock for shop

    Hello! I wonder if there's any way to change the number of items in stock in a shop? Example: My shop sells Boots of Speed. Maximum stock number is 15, but 5 has been bought in a recent time, so now there's only 10 in stock. The replenish time however is 10 sec, but I would like the stock to...
  14. Leazy

    Calculate area covered with certain terrain type

    Hello guys and merry christmas! In my game I got a unit that changes terrain while walking, and I want to calculate the area in a region covered by this terrain after a certain time: So I want to calculate for exmaple (area covered with lordaeron dirt)/(total region area) Thanks in...
  15. Leazy

    Delay while hosting (please help fast)

    Hello! I'm about to play some DotA with a couple of friends, and we got a big delay (about 2 secs), so I wonder is there any progrem that can help me reduce this delay? I tried a couple of delay reducers, but none seem to work anymore. +rep to helpers!=)
  16. Leazy

    [Request]: Model colour change to blue

    Hello! I would like to make a request about making a blue model of the transmute effect: Abilities\Spells\Other\Transmute\PileofGold.mdl I tried making a unit with the model and just making the unit blue, but that didn't really make the "explosion" blue. Would greatly appreciate if anyone would...
  17. Leazy

    Order unit to do variable order

    Hello! I store units orders like this: Save Orders Events Unit - A unit Is issued an order targeting an object Unit - A unit Is issued an order targeting a point Unit - A unit Is issued an order with no target Conditions Actions Set...
  18. Leazy

    Hashtable

    Hello! In my map I need to store a certain real value to many different spells (casting time for my casting bar system). This is what I got so far: Saves the value: Hashtable - Create a hashtable Set CASTINGBAR_Hashtable = (Last created hashtable) Set CASTINGBAR_Ability = Healing Wave Custom...
  19. Leazy

    Adding unit to local group

    Hey! I try to add a unit to a local group using: Custom script: Call GroupAddUnitSimple( udg_Target, Knocked ) I get error message saying "Expected 'endif'" This is the whole trigger: Repulsion Totem Repel Events Time - Every 0.03 seconds of game time Conditions...
  20. Leazy

    Real time elapsed

    Hello! I got a knock back system that bases the knockback speed on the duration set in a variable. The trigger runs every 0.03 sec and increases the variable by 0.03. When the variable reaches the predetermined value the knockback ends. This way I am able to set the knockback time to anything...
Top