OnExcavatorSuppliesRequest
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnExcavatorSuppliesRequest( ExcavatorSignalComputer instance, BasePlayer player )
{
Puts( "OnExcavatorSuppliesRequest works!" );
}
Location
- ExcavatorSignalComputer::RequestSupplies(BaseEntity/RPCMessage rpc)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.CallsPerSecond(5uL), BaseEntity.RPC_Server.IsVisible(3f)]
public void RequestSupplies(BaseEntity.RPCMessage rpc)
{
if (base.HasFlag(BaseEntity.Flags.Reserved7) && this.IsPowered() && this.chargePower >= ExcavatorSignalComputer.chargeNeededForSupplies)
{
if (Interface.CallHook("OnExcavatorSuppliesRequest", this, rpc.player) != null)
{
return;
}
BaseEntity baseEntity = GameManager.server.CreateEntity(this.supplyPlanePrefab.resourcePath, default(Vector3), default(Quaternion), true);
if (baseEntity)
//---