OnNpcRadioChatter
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcRadioChatter( ScientistNPC instance )
{
Puts( "OnNpcRadioChatter works!" );
}
Location
- ScientistNPC::PlayRadioChatter()
csharp
//---
if (base.IsDestroyed || base.transform == null)
{
base.CancelInvoke(new Action(this.PlayRadioChatter));
return;
}
if (Interface.CallHook("OnNpcRadioChatter", this) != null)
{
return;
}
Effect.server.Run(this.RadioChatterEffects[UnityEngine.Random.Range(0, this.RadioChatterEffects.Length)].resourcePath, this, StringPool.Get("head"), Vector3.zero, Vector3.zero, null, false, null);
this.QueueRadioChatter();
//---