CanUseWires
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanUseWires( BasePlayer player, bool cached, float cacheDuration )
{
Puts( "CanUseWires works!" );
}
Location
- WireTool::CanPlayerUseWires(BasePlayer player, bool cached, float cacheDuration)
csharp
public static bool CanPlayerUseWires(BasePlayer player, bool cached = false, float cacheDuration = 1f)
{
object returnvar = Interface.CallHook("CanUseWires", player, cached, cacheDuration);
if (returnvar is bool)
{
return (bool)returnvar;
}
if (player != null && player.IsInCreativeMode && ConVar.Creative.unlimitedIo)
//---