OnNpcAlert
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcAlert( ScientistNPC instance )
{
Puts( "OnNpcAlert works!" );
}
Location
- ScientistNPC::Alert()
csharp
public void Alert()
{
if (Interface.CallHook("OnNpcAlert", this) != null)
{
return;
}
this.lastAlertedTime = Time.time;
this.SetChatterType(ScientistNPC.RadioChatterType.Alert);
//---