diff --git a/NWN.Anvil/src/main/API/Objects/NwCreature.cs b/NWN.Anvil/src/main/API/Objects/NwCreature.cs index 45b3bd51b..c0457d8cb 100644 --- a/NWN.Anvil/src/main/API/Objects/NwCreature.cs +++ b/NWN.Anvil/src/main/API/Objects/NwCreature.cs @@ -2781,6 +2781,16 @@ public void SummonFamiliar(string resRef) Creature.m_bSummonedFamiliar = 1; } + /// + /// 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. + /// If this command is run on a PC or an object that is not a creature, nothing will happen. + /// + public async Task SurrenderToEnemies() + { + await WaitForObjectContext(); + NWScript.SurrenderToEnemies(); + } + /// /// Forces this creature to unsummon their familiar.
/// Does nothing if this creature has no familiar summoned.