Declaration
public void SendMessageToTarget(string method, ParaPlayer target, params object[] args)
Description
Sends messages to the endpoint where the specified player resides.
method | Name of the function defined in the Lua file of the ParaScript |
target | Target player that receives the message |
args | Variable 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