Skip to content

OnThreatLevelUpdate ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private void OnThreatLevelUpdate( BasePlayer instance )
{
    Puts( "OnThreatLevelUpdate works!" );
}

Location ​

  • BasePlayer::EnsureUpdated()
csharp
//---
	}
	this.lastUpdateTime = Time.realtimeSinceStartup;
	this.cachedThreatLevel = 0f;
	if (!this.IsSleeping())
	{
		if (Interface.CallHook("OnThreatLevelUpdate", this) != null)
		{
			return;
		}
		if (this.inventory.containerWear.itemList.Count > 2)
		{
//---

Released under the MIT License.