Search results

  1. I

    Get the damage dealt in triggers?

    I'm making a self-cast spell "Electric Shield" for Goblin Shredder. When the spell is active and Goblin is being attacked it automatically deals some percentage of the damage back to attacker, just like Thorns Aura does, but unlike Thorns Aura it drains mana when it's active and can be...
  2. I

    Are variables of type real leaking memory?

    Tutorials about leaking say that everything except for integers is leaking. I have 3 arrays (sized 10) which are being updated every 0.30 seconds and also when specific script is triggered by player. It's being updated using previous value (example: set x=x+0.1). I think if that was leaking my...
  3. I

    Building controled by A.I. casts custom spell only when attacked, how to change this?

    The title pretty much says it. I want the building to cast the ability whenever possible instead of casting it only when it's attacked. The building has no attacks of its own enabled if this matters. Any ideas why this is so?
  4. I

    How to set the attack animation and sound for Dwarf Car?

    Dwarf Car/Cart is used in GrandPrix map (included in Frozen Throne). Units\Other\DwarfCar\DwarfCar.mdl I used its model on my map but it had no attack animation, I checked its animations using custom script call SetUnitAnimationByIndex(udg_Unit, udg_n) Where Unit is a variable which is set to...
  5. I

    Is there a way to get Z coordinat of a unit/region/point?

    I need the camera height offset to change when player walks up a mountain my third person map. How do I do set my HeightVar to the Z coordinate of the unit/hero?
  6. I

    How to unresearch a research?

    So I need to downgrade an upgrade so that abilities dependent on it shall become unusable as they were before the upgrade. Help me please. Thanks in advance. PS One solution may be to make a building as a requirement instead of an upgrade and create and remove it when necessary but it's too...
  7. I

    Owner of (Triggering unit) interrupts my trigger

    Hello guys! It works fine if I disable it but for every player at the same time, since I'm working on multiplayer map the action should be triggered only for the triggering player. Why doesn't it work? What do I replace it with?
  8. I

    How to make an unmoving unit to face the target?

    So I have a unit which has 'Amov' disabled but still can attack a target. The problem is that it's facing angle won't change automatically since the 'Amov' ability is removed. (I need to make him unmovable like that to get rid of patrol/hold position/move buttons so using other methods is not...
  9. I

    Help to remove Patrol, Hold Position and Move buttons from a hero. I beg you please

    I need a room for spells and I was trying to do this for a while already, all forum threads asking the same question I could find through Google are of no avail. "call UnitRemoveAbility(unit, 'Amov')" or "call UnitRemoveAbilityBJ( 'Amov', unit)" doesn't seem to work (or at list I can't make it...
Top