Kyzerdrood
New Member
- Reaction score
- 3
Im trying to learn vJass from GUI from the tutorial posted on this site and i read till it said i should practice a bit b4 continuing and i cant get this.
I know its got to be something simple, but why doesnt this work?
im just practicing and trying to make it when a unit dies, its removed from the game.
i get error on every line.
JASS:
scope whichTrigger initializer Init
function Actions01 takes unit returns nothing
call RemoveUnit(GetDyingUnit())
endfunction
function Condition01 takes nothing returns nothing
endfunction
function Init takes nothing returns nothing
call set t = CreateTrigger()
call TriggerAddCondition(t,Condition(function Condition01))
call TriggerAddAction(t, function Actions01)
endfunction
endscope
I know its got to be something simple, but why doesnt this work?
im just practicing and trying to make it when a unit dies, its removed from the game.
i get error on every line.