Hey, I JUST started learning JASS (last night actually) and I am obviously a little confused. My main concern is how do I make JASS 'execute'.
Like this:
From what I understand, this should kill the triggering unit. But how do I:
a) Determine the triggering unit
b) Make this code "execute". (sorry if that isn't clear. I have used GUI for alsmost 4 years now and I dont have a better way of explaining it). Like if I wanted to kill a "unit" after 5 seconds. What makes the function run after 5 seconds?
Like this:
Code:
function variable_test takes nothing returns nothing
local unit array A
set A[1] = GetTriggerUnit()
call KillUnit(A[1])
set A[1] = null
endfunction
From what I understand, this should kill the triggering unit. But how do I:
a) Determine the triggering unit
b) Make this code "execute". (sorry if that isn't clear. I have used GUI for alsmost 4 years now and I dont have a better way of explaining it). Like if I wanted to kill a "unit" after 5 seconds. What makes the function run after 5 seconds?