- Joined
- Sep 25, 2007
- Messages
- 14
I made a Jass and its fully working. But the problem is, Error appear when i try putting a raw dataof my custom unit.heres the code ('h002:hpea',2,4,1).
what is the problem?
what is the problem?
function Trig_MoveWithArrowKeys_Conditions takes nothing returns boolean
return true
endfunction
function Trig_MoveWithArrowKeys_Actions takes nothing returns nothing
loop
loop
call SetUnitPositionLoc(u,PolarProjectionBJ((GetUnitLoc u,25.00,(GetUnitFacing u))
exitwhen TriggerRegisterPlayerKeyEventBJ( gg_trg_Get_Player_Units_up_key, Player(0), bj_KEYEVENTTYPE_RELEASE, bj_KEYEVENTKEY_UP )
endloop
exitwhen CountUnitsInGroup(udg_UnitsToMove) == 0
local unit u = (FirstOfGroup(udg_UnitsToMove))
endloop
endfunction
//==== Init Trigger MoveWithArrowKeys ====
function InitTrig_MoveWithArrowKeys takes nothing returns nothing
set gg_trg_MoveWithArrowKeys = CreateTrigger()
//call TriggerRegister__(gg_trg_MoveWithArrowKeys, )
call TriggerAddCondition(gg_trg_MoveWithArrowKeys, Condition(function Trig_MoveWithArrowKeys_Conditions))
call TriggerAddAction(gg_trg_MoveWithArrowKeys, function Trig_MoveWithArrowKeys_Actions)
endfunction