function Leak takes nothing returns unit
local unit u = whatever
return u
//the function stops here so there's no point in adding a "set u = null", but does it leak?
endfunction
Delay of Attack / Attack Orders
Unlike many people think, setting both the unit's Animation Damage Point and Attack Cooldown Time to 0.000 won't make its attack instantly.
The result will be even worse if we use the action Unit - Issue Order(Attack) Targeting A Unit
I created this tread to...
Can someone help me with this one from the start?
What does it have to do with GetEnumUnit() and GetFilterUnit()?
As I searched everywhere for some kind of tutorial and found nothing but discussions about its applications that I can't use to understand the basics of it.
I just want someone to explain me why would use conditions instead of actions for the whole trigger be better, since conditions returns a boolean and actions return nothing?
Wouldn't it be the same the opposite way? If all my code stand in the actions function and I insert no condition function?
My map has a trigger that will run basicly every time a hero damages another unit making a dummy unit to add an effect to the Hero's attack.
Which is better/faster:
Option 1: Create a dummy for each run of the trigger adding an expiration timer to it.
Option 2: Have one dummy created for...
Does anyone has it?
I always thought this was impossible of doing, but I just accidently find out that the Start Location is TRANSPARENT on most of it.
I tried using Photoshop to make it fully transparent but failed. Can someone good at PS give it a try or at least try to teach me how to do it...
If I set it to anything else than 0 it affects no unit at all.
I just wanted it to affect 1 unit only (the closest).
Is this another brilliant hardcoded ability from Blizzard or am I doing something wrong?
(I know I can do it with triggers, a dummy unit and a very small area of effect. That's...
Does anyone knows how spells like frost nova or frost arrows change the unit vertex coloring to that blueish and then return it to the unit's default color?
Like if you have a custom red unit by changing it's tinting colors in object editor, when the slowed buff goes off the unit returns to...
My spell needs to wait for a specific buff to be aplied to the target unit so it can trigger it's effects.
Since the wait for condition function needs a global variable and at the same time include a wait it's impossible to make it work if you have more than one instance going on. Unless your...
Another simply and direct question:
Which option is lighter (i mean in processing time or memory use or something like that) and witch is the more correct after all (if there's such thing :P)
Option 1:
Set MyItem = (Item carried by Hero of type MyItemType)
Item - Set charges remaining in...
It's probaly a real stupid question, buuut anyways..
Like for example:
Action
Item - Set charges remaining in (Item carried by (Triggering Unit) of type MyItemType) to 1
Do i need to set (Item carried by (Triggering Unit) of type MyItemType) in a variable and them remove it?
And...