Skip to content

OnRotateVendingMachine

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnRotateVendingMachine( VendingMachine instance, BasePlayer player )
{
    Puts( "OnRotateVendingMachine works!" );
}

Location

  • VendingMachine::RPC_RotateVM(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.IsVisible(3f)]
public void RPC_RotateVM(BaseEntity.RPCMessage msg)
{
	if (Interface.CallHook("OnRotateVendingMachine", this, msg.player) != null)
	{
		return;
	}
	if (!this.CanRotate())
	{
//---

Released under the MIT License.