OnExcavatorResourceSet
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnExcavatorResourceSet( ExcavatorArm instance, string text, BasePlayer player )
{
Puts( "OnExcavatorResourceSet works!" );
}
Location
- ExcavatorArm::RPC_SetResourceTarget(BaseEntity/RPCMessage msg)
csharp
[BaseEntity.RPC_Server, BaseEntity.RPC_Server.MaxDistance(3f)]
public void RPC_SetResourceTarget(BaseEntity.RPCMessage msg)
{
string text = msg.read.String(256, false);
if (Interface.CallHook("OnExcavatorResourceSet", this, text, msg.player) != null)
{
return;
}
if (text == "HQM")
{
//---