OnExcavatorSuppliesRequested
Usage
- No return behavior
Example Autogenerated
csharp
private void OnExcavatorSuppliesRequested( ExcavatorSignalComputer instance, BasePlayer player, BaseEntity baseEntity )
{
Puts( "OnExcavatorSuppliesRequested works!" );
}
Location
- ExcavatorSignalComputer::RequestSupplies(BaseEntity/RPCMessage rpc)
csharp
//---
Vector3 position = this.dropPoints[UnityEngine.Random.Range(0, this.dropPoints.Length)].position;
Vector3 b = new Vector3(UnityEngine.Random.Range(-3f, 3f), 0f, UnityEngine.Random.Range(-3f, 3f));
baseEntity.SendMessage("InitDropPosition", position + b, SendMessageOptions.DontRequireReceiver);
baseEntity.Spawn();
}
Interface.CallHook("OnExcavatorSuppliesRequested", this, rpc.player, baseEntity);
this.chargePower -= ExcavatorSignalComputer.chargeNeededForSupplies;
base.SetFlag(BaseEntity.Flags.Reserved7, false, false, true);
base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
}
}