dunno at this point

This commit is contained in:
Pao
2023-01-12 15:13:57 +01:00
parent 53a814463a
commit bf01a5dc0d
5 changed files with 206 additions and 36 deletions

View File

@@ -83,8 +83,48 @@ Commands["CanOperateArm"] = function(arg)
end
--------------------------------------------------------------------
function AskGetOtherPlayerData(player)
local arg = {}
arg["From"] = getPlayer():getOnlineID() --surgoen
arg["To"] = player:getOnlineID() --patient
arg["command"] = "SendOtherPlayerData";
arg["toSend"] = {player:getModData().TOC} -- will it work?
sendClientCommand("TOC", "SendServer", arg);
end
function SendGetOtherPlayerData(player)
local arg = {}
arg["From"] = getPlayer():getOnlineID() --surgoen
arg["To"] = player:getOnlineID() --patient
arg["command"] = "GetOtherPlayerData";
arg["toSend"] = {player:getModData().TOC} -- will it work?
sendClientCommand("TOC", "SendServer", arg);
end
-- todo why is this here? this doesnt make any sense
-- Event
local onServerCommand = function(module, command, args)
-- TODO change this name
if module == "TOC" and Commands[command] then
args = args or {}
Commands[command](args)