mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:02:26 +08:00
13 lines
530 B
Go
13 lines
530 B
Go
function OnClientExecuteReq(context, param1, param2, param3)
|
||
local this_config = ScriptLib.GetContextGadgetConfigId(context)
|
||
local this_group = ScriptLib.GetContextGroupId(context)
|
||
--ScriptLib.PrintLog("GadgetState Get Change!!!!!!!")
|
||
ScriptLib.SetGadgetState(context, param1)
|
||
if param1==0 then
|
||
ScriptLib.SetGadgetEnableInteract(context, this_group, this_config, false)
|
||
end
|
||
if param1==201 then
|
||
ScriptLib.SetGadgetEnableInteract(context, this_group, this_config, true)
|
||
end
|
||
return 0
|
||
end |