Skip to content

CanChangeCode

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanChangeCode( BasePlayer player, CodeLock instance, string text, bool flag )
{
    Puts( "CanChangeCode works!" );
}

Location

  • CodeLock::RPC_ChangeCode(BaseEntity/RPCMessage rpc)
csharp
//---
	}
	if (!this.hasCode & flag)
	{
		return;
	}
	if (Interface.CallHook("CanChangeCode", rpc.player, this, text, flag) != null)
	{
		return;
	}
	if (!this.hasCode && !flag)
	{
//---

Released under the MIT License.