OnWireClear
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnWireClear( BasePlayer ply, IOEntity iOEntity, int clearIndex, IOEntity iOEntity2, bool isInput )
{
Puts( "OnWireClear works!" );
return null;
}Location
- WireTool::AttemptClearSlot(BaseNetworkable clearEnt, BasePlayer ply, int clearIndex, bool isInput)
csharp
//---
if (((IOEntity.IOSlot)(object)iOEntity2).connectedTo.Get() == null)
{
return false;
}
iOEntity2 = ((IOEntity.IOSlot)(object)iOEntity2).connectedTo.Get();
object obj = Interface.CallHook("OnWireClear", ply, iOEntity, clearIndex, iOEntity2, isInput);
if (obj is bool)
{
return (bool)obj;
}
if (iOEntity == null)
//---