ParaScript.SendMessageToTarget

Declaration

public void SendMessageToTarget(string method, ParaPlayer target, params object[] args)

Description

Sends messages to the endpoint where the specified player resides.

methodName of the function defined in the Lua file of the ParaScript
targetTarget player that receives the message
argsVariable parameter
function RemoteMethodName(info,num)
  print("Recv call ",info,num);
end

function OnNetSpawned()
   local objTarget = ParaPlayerService.GetPlayerById(1003);
    self:SendMessageToAll("RemoteMethodName",objTarget,"hello",123);
end