Lightstalker
New Member
- Reaction score
- 55
Argh this isn't working. :banghead:
I get an "undeclared variable" error on the ''gg_unit..."
I get an "undeclared variable" error on the ''gg_unit..."
JASS:
scope TestTrigger initializer Init
globals
private group tempgroup = CreateGroup()
private group tempgroup2 = CreateGroup()
endglobals
function Actions takes nothing returns nothing
call GroupAddUnit(tempgroup, gg_unit_Hblm_003)
call GroupAddUnit(tempgroup2, gg_unit_Hpal_0026)
endfunction
function Init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterPlayerKeyEventBJ(t, Player(0), bj_KEYEVENTTYPE_DEPRESS, bj_KEYEVENTKEY_LEFT )
call TriggerAddAction(t, function Actions )
endfunction