mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:02:26 +08:00
15 lines
540 B
Go
15 lines
540 B
Go
-- abilityRequest
|
|
function OnClientExecuteReq(context, param1, param2, param3)
|
|
--ScriptLib.PrintLog("##param1="..param1)
|
|
-- 获取机关当前状态
|
|
local this_config = ScriptLib.GetContextGadgetConfigId(context)
|
|
|
|
local this_group = ScriptLib.GetContextGroupId(context)
|
|
|
|
if param1 == 1 then
|
|
ScriptLib.SetGroupGadgetStateByConfigId(context, this_group, this_config, GadgetState.Default )
|
|
end
|
|
if param1 == 0 then
|
|
ScriptLib.SetGroupGadgetStateByConfigId(context, this_group, this_config, GadgetState.GearStart )
|
|
end
|
|
end |