Background for Skyrim SE
Member of the DbSkseEvents script
eventOnCombatStateChangedGlobal(ActorakActor, ActorakTarget, intaeCombatState)

Description

Documentation Comment

note that this will work on the player for most cases. Exception being if stopCombat is called on the player with a script.
internally this checks the player's combat status whenever another actor changes combat status
and sends the event if the player combat status has changed, if the player is registered for akActor.


Parameters

  1. ActorakActor

  2. ActorakTarget

  3. intaeCombatState


Examples

Auto-Generated Example

Scriptname MyCoolScript extends DbSkseEvents

event OnCombatStateChangedGlobal(Actor akActor, Actor akTarget, int aeCombatState)
    Debug.trace("Event received - OnCombatStateChangedGlobal: akActor = " + akActor + " akTarget = " + akTarget + " aeCombatState = " + aeCombatState)
endEvent
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.