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