Skip to content

CanUseWires

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void CanUseWires( BasePlayer player )
{
    Puts( "CanUseWires works!" );
}

Location

  • WireTool::CanPlayerUseWires(BasePlayer player)
csharp
public static bool CanPlayerUseWires(BasePlayer player)
{
	object returnvar = Interface.CallHook("CanUseWires", player);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	if (player != null && player.IsInCreativeMode && ConVar.Creative.unlimitedIo)
//---

Released under the MIT License.