UT SetSurrenderFlag

From Dragon Age Toolset Wiki
Jump to: navigation, search

Sets up a creature to surrender when they get low on health in combat.

void UT_SetSurrenderFlag(
object oCreature,
int bSurrender = TRUE,
string sPlotName = "",
int nPlotFlag = 0,
int bInitConversation = TRUE
);
Parameters:
oCreature
The surrendering creature
bSurrender
Set or un-set the creature's surrender functionality.
sPlotName
The name of the plot which should have a flag set as the creature surrenders, if any. Default is empty.
nPlotFlag
The plot flag to be set as the creature surrenders, if any. The variable is irrelevant if sPlotName is empty.
bInitConversation
Creature will initiate a conversation on surrendering if this is TRUE.
Returns:

Nothing.

Source:

Core Resources.utility_h

Description

Enables the creature to surrender during combat and sets up the surrender plot flag if specified.