Background for Skyrim SE
Member of the Quest script
eventOnStoryAssaultActor(ObjectReferenceakVictim, ObjectReferenceakAttacker, LocationakLocation, intaiCrime)

Description

Wiki Description

Event called when this quest is started via an assault actor story manager event.


Parameters

  1. ObjectReferenceakVictim

    CK Wiki Description

    The ObjectReference that was assaulted.

  2. ObjectReferenceakAttacker

    CK Wiki Description

    The ObjectReference that attacked the victim.

  3. LocationakLocation

    CK Wiki Description

    The Location where it happened.

  4. intaiCrime

    CK Wiki Description

    This is actually a boolean (due to limitations in the story event system, it is sent as an integer) denoting whether a crime took place or not. 0 = false. Non-zero = true. Papyrus will correctly handle this if you cast it to a bool or use it in an if statement.


Examples

Event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, int aiCrime)
  if aiCrime
    Debug.Trace(akVictim + " was assaulted by " + akAttacker + " and it was considered a crime")
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Quest

event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, int aiCrime)
    Debug.trace("Event received - OnStoryAssaultActor: akVictim = " + akVictim + " akAttacker = " + akAttacker + " akLocation = " + akLocation + " aiCrime = " + aiCrime)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.