PlayerExtensions
ThaumielMapEditor.API.Extensions
Overview​
Methods​
| Signature | Returns | Description |
|---|---|---|
SendFakeRPC(Player, UInt32, Type, string, int, object[]) | void | Sends a fake RPC message to a LabApi.Features.Wrappers.Player |
TryGet(ReferenceHub, Player&) | bool | Tries to get a LabApi.Features.Wrappers.Player from a ReferenceHub |
Methods​
SendFakeRPC​
SendFakeRPC
public void SendFakeRPC(
Player player,
UInt32 netId,
Type type,
string functionName,
int componentIndex,
object[] objects
)
Sends a fake RPC message to a LabApi.Features.Wrappers.Player
Parameters​
| Name | Type | Description |
|---|---|---|
player | Player | The LabApi.Features.Wrappers.Player to send the RPC to |
netId | UInt32 | The netid of the object that will be affected. |
type | Type | The System.Type of the RPC message. |
functionName | string | The name of the RPC message method |
componentIndex | int | |
objects | object[] | The |
TryGet​
TryGet
public bool TryGet(
ReferenceHub hub,
Player& player
)
Tries to get a LabApi.Features.Wrappers.Player from a ReferenceHub
Parameters​
| Name | Type | Description |
|---|---|---|
hub | ReferenceHub | The ReferenceHub to check. |
player | Player& | The LabApi.Features.Wrappers.Player if found. |
Returns​
bool — true if the LabApi.Features.Wrappers.Player was found else returns false if no LabApi.Features.Wrappers.Player was found.