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