ParaScript.SendMessageToAll

Declaration

public void SendMessageToAll(string method, params object[] args)

Description

Sends messages to all the endpoints including yourself.

Parameter

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

function OnNetSpawned()
    self:SendMessageToAll("RemoteMethodName","hello",123);
end