You just need to follow these triggers:
Code:
call TriggerRegisterPlayerKeyEventBJ(hke_z10[hke_Z75],hke_Z65,0,3)
call TriggerRegisterPlayerKeyEventBJ(hke_z00[hke_Z75],hke_Z65,0,2)
call TriggerRegisterPlayerKeyEventBJ(hke_z20[hke_Z75],hke_Z65,0,1)
The 0 means the Depress Event Key.
3 = UP Arrow;
2 = DOWN Arrow;
1 = RIGHT Arrow.
Code:
call TriggerAddAction(hke_z10[hke_Z75],function hke_zZ9Z)
call TriggerAddAction(hke_z00[hke_Z75],function hke_zZ6Z)
call TriggerAddAction(hke_z20[hke_Z75],function hke_zz0Z)
hke_z00:
Code:
if(hke_Z5[hke_z15]==0)then
set hke_Z5[hke_z15]=1
else
if(hke_Z5[hke_z15]==1)then
set hke_Z5[hke_z15]=2
else
set hke_Z5[hke_z15]=0
endif
endif
hke_z20:
Code:
if(hke_Z5[hke_z15]==2)then
set hke_Z5[hke_z15]=3
else
set hke_Z5[hke_z15]=0
endif
hke_z10:
Code:
if(hke_Z5[hke_z15]==3)then
if((hke_z0==false)or(hke_z15==hke_zz3))then
call hke_z37()
set hke_z4=true
set hke_z5=hke_z05
call hke_z57(GetPlayerId(hke_z05),hke_z05)
endif
else
set hke_Z5[hke_z15]=0
endif
These are the parts which matter.