mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-29 09:35:48 +00:00
12 lines
516 B
Lua
12 lines
516 B
Lua
function OnBeHurt(context, element_type, unkParam, is_host)
|
|
ScriptLib.PrintContextLog(context, "Test IceController")
|
|
local state = ScriptLib.GetGadgetState(context)
|
|
if element_type == ElementType.Ice then
|
|
if state == GadgetState.Default or state == GadgetState.GearAction1 then
|
|
ScriptLib.SetGadgetState(context, GadgetState.GearStart)
|
|
end
|
|
if state == GadgetState.Action01 then
|
|
ScriptLib.SetGadgetState(context, GadgetState.Action02)
|
|
end
|
|
end
|
|
end |