Talk:StopCombatAlarm - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Reverse engineering[edit source]

This function performs the following steps:

  • Make it so that the subject actor is no longer a combat target of any other actor.
  • Modify the actor's internal AI bookkeeping: set the "number of guards pursuing me" counter to zero.
  • If the actor is the player, then run an internal function to mark the player as no longer being queued to go to jail.
  • Modify the actor's internal AI bookkeeping: set the "end alarm" value to true.
  • If the actor is the player, then run these same steps on all fully-loaded actors who are marked as player teammates.
  • Clear the actor's internal "is angry with player" flag.

These behaviors are almost identical to those of StopCombatAlarmOnActor, except that the console command also calls an internal virtual function, Actor::UpdateCombat(), on the subject actor.

DavidJCobb (talk) 00:43, 31 July 2024 (EDT)