Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions NWN.Anvil/src/main/API/Objects/NwCreature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2781,6 +2781,16 @@ public void SummonFamiliar(string resRef)
Creature.m_bSummonedFamiliar = 1;
}

/// <summary>
/// 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.
/// </summary>
public async Task SurrenderToEnemies()
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
{
await WaitForObjectContext();
NWScript.SurrenderToEnemies();
}

/// <summary>
/// Forces this creature to unsummon their familiar.<br/>
/// Does nothing if this creature has no familiar summoned.
Expand Down
Loading