# Search results

1. ### Help with making a Solo TD

What I would do for this situation is use an integer for how many units per level per player, and each time a player kills one, subtract one from the integer. When it hits 0 send the next level for that player.
2. ### Can you help me learn C++?

Can you help me learn C++?
3. ### Lightning Warrior Ability

They're both points...
4. ### Turn of trigger permanently.

Why wouldn't you use [wc3]Custom Script: call DestroyTrigger(gg_trg_<insert trigger name>)?
5. ### Lightning Warrior Ability

Set offset[(Integer A)] = (hitUnitLoc[(Integer A)] offset by 4.00 towards (Angle from hitUnitLoc[(Integer A)] to Spell_Caster) degrees) is found in Point with Polar Offset. And this neeeeds to be above the moving unit. Set hitUnitLoc[(Integer A)] = (Position of hitUnit[(Integer A)]) Also make...
6. ### Lightning Warrior Ability

Two things I noticed, Custom script: call RemoveLocation(udg_Tech_Pivot) should be Custom script: call RemoveLocation(udg_Lightning_Pivot) and Set offset[(Integer A)] = hitunitLoc[(Integer A)] needs to be fixed. Also, you can remove Custom script: call RemoveLocation(udg_Spell_Pivot) at the...

It's fine...
8. ### Lightning Warrior Ability

There's a button at the top on a bar that has a big yellow X on it. Click that. It'll have options to add, edit, or remove variables. Click on hitUnit and click Edit. Then under the name and type of variable, you'll see a check box with array next to it. Click that check box. Then just close the...
9. ### Repick Trigger Needs More Functionality (was: Need trigger help)

Tyman, not that it's a bad suggestion, but he asked how to fix it, not if it was a good or bad idea. Edit: I'm thoroughly confused why you used 293052308 triggers to repick...
10. ### Lightning Warrior Ability

Chain Pull Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Storm Bolt Actions Set hitUnit[1] = (Target unit of ability being cast) Set RangeCounter = 500.00 Set Spell_Pivot = (Position of...
11. ### Lightning Warrior Ability

Chain Pull Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Storm Bolt Actions Set Spell_Caster = (Position of (Triggering unit)) Set hitUnit[1] = (Target unit of ability being cast) Set RangeCounter =...
12. ### Lightning Warrior Ability

I told you it wouldn't pull them... I just wanted to make sure that that worked (I didn't feel like changing all kinds of unit things, so I didn't test, but you can change the animations and effects and w/e for the two spells that I gave so it looks like chain lighting, or however you want)...
13. ### Unit Height

That worked, but what's the difference?
14. ### Unit Height

Doesn't matter what the flying height is... It never changes. I also tried changing fly height of a gryphon, that didn't work either.
15. ### Spawning

Unit Groups leak, and I don't think the "type" (global, local, etc) matters.
16. ### Unit Height

function Spawn takes nothing returns nothing local unit u call CreateUnitAtLoc(Player(0),'hfoo', GetRectCenter(GetPlayableMapRect()), 0) set u = GetLastCreatedUnit() call UnitAddAbility(u,'Amrf') call SetUnitFlyHeight(u,1,0) call UnitRemoveAbility(u,'Amrf') endfunction
17. ### Animation for spells

Shadow, Avaleirra meant to pause the unit, run the whole animation, and unpause the unit.
18. ### Lightning Warrior Ability

Real comparison, and one of the choices will be Math - Distance Between Points.
19. ### Unit Height

I tried that on flying units, and it didn't change their height at all... and added crow form on ground units, didn't work either.
20. ### Lightning Warrior Ability

So this is what I came up with: Chain Pull Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Storm Bolt Actions Set hitUnit[1] = (Target unit of ability being cast) Set Spell_Pivot = (Position of...