OnDoorKnocked
Usage
- No return behavior
Example Autogenerated
csharp
private void OnDoorKnocked( Door instance, BasePlayer player )
{
Puts( "OnDoorKnocked works!" );
}
csharp
private void OnDoorKnocked( DoorKnocker instance, BasePlayer player )
{
Puts( "OnDoorKnocked works!" );
}
Location
- Door::RPC_KnockDoor(BaseEntity/RPCMessage rpc)
- DoorKnocker::Knock(BasePlayer player)
csharp
//---
component.Knock(rpc.player);
return;
}
}
Effect.server.Run(this.knockEffect.resourcePath, this, 0u, Vector3.zero, Vector3.zero, null, false, null);
Interface.CallHook("OnDoorKnocked", this, rpc.player);
}
csharp
public void Knock(BasePlayer player)
{
base.ClientRPC<Vector3>(RpcTarget.NetworkGroup("ClientKnock"), player.transform.position);
Interface.CallHook("OnDoorKnocked", this, player);
}