ParaScript.SendMessageToOwner

Declaration

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

Description

Sends messages to the network owner of the component.

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: SendMessageToOwner("RemoteMethodName","hello",123);
end