This is the tutorial I am reading http://www.hiveworkshop.com/forums/...als-280/beginning-jass-tutorial-series-30765/
In part 2 which is about variables it gives this which I think will kill a unit
function variable_testA takes nothing returns nothing
local unit u = GetTriggerUnit()
call KillUnit(u)
endfunction
function variable_testB takes nothing returns nothing
call KillUnit(GetTriggerUnit())
endfunction
I put a footman in the middle of the map and copied this code but I dont see how I am supposed to make this kill the footman
oh another question
function HelloWorld takes nothing returns nothing
call BJDebugMsg("Hello World")
endfunction
i got this message to appear but i needed to use triggers to do it, how do i do it with just JASS
In part 2 which is about variables it gives this which I think will kill a unit
function variable_testA takes nothing returns nothing
local unit u = GetTriggerUnit()
call KillUnit(u)
endfunction
function variable_testB takes nothing returns nothing
call KillUnit(GetTriggerUnit())
endfunction
I put a footman in the middle of the map and copied this code but I dont see how I am supposed to make this kill the footman
oh another question
function HelloWorld takes nothing returns nothing
call BJDebugMsg("Hello World")
endfunction
i got this message to appear but i needed to use triggers to do it, how do i do it with just JASS