You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NWN.Anvil/src/main/API/Objects/NwCreature.cs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2781,6 +2781,17 @@ public void SummonFamiliar(string resRef)
2781
2781
Creature.m_bSummonedFamiliar=1;
2782
2782
}
2783
2783
2784
+
/// <summary>
2785
+
/// Use this on an NPC to cause all nearby creatures to stop what they are doing and sets the NPC's enemies within this range to be neutral towards the NPC with nearby enemies.
2786
+
/// If this command is run on a PC or an object that is not a creature, nothing will happen.
2787
+
/// </summary>
2788
+
2789
+
publicasyncTaskSurrenderToEnemies()
2790
+
{
2791
+
awaitWaitForObjectContext();
2792
+
NWScript.SurrenderToEnemies();
2793
+
}
2794
+
2784
2795
/// <summary>
2785
2796
/// Forces this creature to unsummon their familiar.<br/>
2786
2797
/// Does nothing if this creature has no familiar summoned.
0 commit comments