0
0
mirror of https://gitlab.com/YuukiPS/GC-Resources.git synced 2025-04-29 09:35:48 +00:00
GC-Resources/Resources/Scripts/Gadget/Gather_FireFlower02.lua
KingRainbow44 b77f8d326e
Revert "The Great De-Local'ifying of Lua Scripts"
This reverts commit 54223c3d4857544a2cc9b94a9e10377596e367e4.
2023-08-29 21:33:58 -04:00

18 lines
676 B
Lua

function OnBeHurt(context, element_type, strike_type, is_host)
--ScriptLib.PrintLog("##BeHurt")
local this_flower = ScriptLib.GetContextGadgetConfigId(context)
local this_group = ScriptLib.GetContextGroupId(context)
local state = ScriptLib.GetGadgetState(context)
if state == GadgetState.Default then
ScriptLib.SetGadgetState(context, GadgetState.Action01)
elseif state == GadgetState.Action01 then
ScriptLib.SetGadgetState(context, GadgetState.Action02)
elseif state == GadgetState.Action02 then
ScriptLib.SetGadgetState(context, GadgetState.Action01)
end
--ScriptLib.KillEntityByConfigId(context, { group_id = this_group, config_id = this_flower })
end