forked from teamnwah/openmw-tes3coop
StopCombat: mark as non-hostile
This commit is contained in:
parent
da3295d69c
commit
dff67bb0b6
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ namespace MWScript
|
|||
MWWorld::Ptr actor = R()(runtime);
|
||||
MWMechanics::CreatureStats& creatureStats = MWWorld::Class::get(actor).getCreatureStats(actor);
|
||||
creatureStats.getAiSequence().stopCombat();
|
||||
creatureStats.setHostile(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue