Moved a lot more stuff

This commit is contained in:
Pao
2023-01-12 22:13:13 +01:00
parent e6ea6bbc81
commit 5ebd797afe

View File

@@ -33,6 +33,28 @@ local function OperateLocal(_, patient, surgeon, partName, useOven)
end end
function TheOnlyCure.TryActionOnOtherPlayerLocal(_, part_name, action, surgeon, patient)
local ui = GetConfirmUIMP()
if not ui then
MakeConfirmUIMP()
ui = GetConfirmUIMP()
end
if action == "Cut" then
AskCanCutLimb(patient, part_name)
AskCanCutArm(patient, part_name);
elseif action == "Operate" then
AskCanOperateLimb(patient, part_name)
AskCanOperateArm(patient, part_name);
end
ui.actionAct = action;
ui.partNameAct = part_name;
ui.patient = patient;
SetConfirmUIMP("Wait server")
end
local function otherPlayerLocal(_, partName, action, surgeon, patient) local function otherPlayerLocal(_, partName, action, surgeon, patient)