mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-13 11:06:47 +00:00
[Client] Make any ActorAI packet override an actor's desire to fight
This commit is contained in:
parent
79ee976c95
commit
2e31c212c0
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ void DedicatedActor::setEquipment()
|
||||||
void DedicatedActor::setAI()
|
void DedicatedActor::setAI()
|
||||||
{
|
{
|
||||||
MWMechanics::CreatureStats *ptrCreatureStats = &ptr.getClass().getCreatureStats(ptr);
|
MWMechanics::CreatureStats *ptrCreatureStats = &ptr.getClass().getCreatureStats(ptr);
|
||||||
|
ptrCreatureStats->setAiSetting(MWMechanics::CreatureStats::AI_Fight, 0);
|
||||||
|
|
||||||
if (aiAction == mwmp::BaseActorList::CANCEL)
|
if (aiAction == mwmp::BaseActorList::CANCEL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue