VRC Trigger Actions - SendRPC
back to Trigger Actions
SendRPC
SendRPC will send a Remote Procedure Call to all targets specified in the "Targets" field. This includes a buffer type (See broadcast types).
A Remote Procedure Call (RPC) will remotely call a procedure on another client in the same network. In the context of VRChat it is used to call certain methods on VRC components on remote clients from the local client. Components that specifically allow RPCs include:
* This Method expects a Player ID as its last parameter. It can be set to the player that instigated the RPC by checking the "Use PlayerID as last" box or (in special cases) set manually to a specific PlayerID.
(Only for VRC_Pickup.Drop: When PlayerID is set to -1 it will use the local PlayerID. "Target" should be set to Local for this. This is useful to drop the Pickup regardless who instigated the RPC, however for that to work it needs to be broadcasted to all Players)
SendRPC will only appear in the Trigger Actions List ("Basic Events") if the "Advanced Mode" checkbox is enabled.
Alternatively you can get most of the RPCs through the "Events in Scene" menu.
Custom Method
Additionally there are a few "Custom Method" RPCs:
(Note: These might be unsupported, broken, or unreliable. Further research required)
VRC_PlayerMods:
- AddPlayerMods
- RemovePlayerMods
VRC_Station:
- UseStation
- ExitStation