Hello there!
I'm kinda new to Jass.
Now i'm trying to do that when you create units they saves in array and then when one of the units kill enemy, trigger compare that unit with the array, and returns the unit index in array.
First trigger i've created, when unit's are remembered in array.
But check trigger fails...
When i'm trying to test map, map just won't start... but when I delete
It starts normally...
So the question. What am I doing wrong, and what I've to do to make it work?
Thanks for response
I'm kinda new to Jass.
Now i'm trying to do that when you create units they saves in array and then when one of the units kill enemy, trigger compare that unit with the array, and returns the unit index in array.
First trigger i've created, when unit's are remembered in array.
But check trigger fails...
JASS:
function Kill_Actions takes nothing returns nothing
local unit un
local unit unt
set un = GetKillingUnit()
set unt = u[1]
When i'm trying to test map, map just won't start... but when I delete
JASS:
set unt = u[1]
So the question. What am I doing wrong, and what I've to do to make it work?
Thanks for response