UT CombatStop

From Dragon Age Toolset Wiki
Jump to: navigation, search

Stops combat between 2 creatures.

void UT_CombatStop(
object oCreatureA,
object oCreatureB
);
Parameters:
oCreatureA
[Undocumented]
oCreatureB
[Undocumented]
Returns:

Nothing.

Source:

Core Resources.utility_h

Description

This function stops combat by turning 2 creatures non-hostile towards each other. The user is responsible for triggering it between any hostile creature towards the player or towards other creature. For example: this function will need to be called once for every creature that is attacking the player in order to stop combat.

This function will switch the creature's group to be the 'non hostile group if it's current group is 'hostile'. No other groups will be switched – for these cases the function will just set the 2 groups non-hostile.


See also

UT_CombatStart