mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-06 16:32:25 +08:00
33 lines
961 B
Go
33 lines
961 B
Go
function OnClientExecuteReq(context, param1, param2, param3)
|
||
if param1 == 0 then
|
||
--当物件被设为Default状态时,将物件设为可交互
|
||
ScriptLib.SetGadgetState(context, GadgetState.Default)
|
||
ScriptLib.SetGadgetEnableInteract(context, ScriptLib.GetContextGroupId(context), ScriptLib.GetContextGadgetConfigId(context), true)
|
||
end
|
||
if param1 == 201 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.GearStart)
|
||
end
|
||
if param1 == 202 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.GearStop)
|
||
end
|
||
if param1 == 203 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.GearAction1)
|
||
end
|
||
if param1 == 204 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.GearAction2)
|
||
end
|
||
if param1 == 901 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.Action01)
|
||
end
|
||
if param1 == 902 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.Action02)
|
||
end
|
||
if param1 == 903 then
|
||
ScriptLib.SetGadgetState(context, GadgetState.Action03)
|
||
end
|
||
|
||
end
|
||
|
||
|
||
|