Table of Contents

Class ClientRpc

Namespace
AO
Assembly
CoreAssembly.dll

Client RPC tells All Out that you want to allow this method to be called from the server and replicated to clients. To call an RPC from the server you need to prepend 'CallClient_' to your method name at the call site. Client RPCs run on the server as well.

[AttributeUsage(AttributeTargets.Method)]
public class ClientRpc : Attribute
Inheritance
ClientRpc
Inherited Members
Extension Methods

Examples

// RPC declaration
[ClientRpc] public void MyRpc(int myFancyParameter) { }
// RPC call site (from server)
CallClient_MyRpc(1234);