ParaScript.SendMessageToAll

Declaration

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

Description

Sends messages to all the endpoints including yourself.

Parameter

method

Name of the function defined in the Lua file of the ParaScript

args

Variable parameter

function RemoteMethodName(info,num)
  print("Recv call ",info,num);
end

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