SurrenderAllToEnemies(object)

Causes all NPCs in the same faction as the given character to surrender.

void SurrenderAllToEnemies(
    object oSurrendering = OBJECT_SELF
);

Parameters

oSurrendering

The NPC whose faction will surrender. (Default: OBJECT_SELF)


Description

Cause all members of the faction of the given surrendering character (oSurrendering) to issue a SurrenderToEnemies call.

That means all NPCs in a 10 metre radius stop what they are doing, and enemies become neutral for 3 minutes.

Only works if the faction member is in the same area as oSurrendering and is not a PC



Remarks

Does not work on PCs, but DOES work on their associates.


Also note that x0_i0_partywide is already included in x0_i0_common. So you will only need to include one, not both.


Requirements

#include "x0_i0_partywide"

Version

1.61

See Also

functions: AdjustReputation | SurrenderToEnemies
categories: Combat Actions Functions | Reputation/Faction Functions


 author: Grimlar, editor: Mistress