OnStoryArrest - Quest

From Creation Kit
Jump to: navigation, search

Member of: Quest Script

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

Syntax

Event OnStoryArrest(ObjectReference akArrestingGuard, ObjectReference akCriminal, Location akLocation, int aiCrime)

Parameters

  • akArrestingGuard: The ObjectReference of the guard that arrested the criminal.
  • akCriminal: The ObjectReference that was arrested.
  • akLocation: The Location where it happened.
  • aiCrime: The type of crime that they were arrested for. Will be one of the following:
    • -1: None
    • 0: Steal
    • 1: Pick-pocket
    • 2: Trespass
    • 3: Attack
    • 4: Murder

Examples

Event OnStoryArrest(ObjectReference akArrestingGuard, ObjectReference akCriminal, Location akLocation, int aiCrime)
  if aiAcquireType == 4 ; Murder
    Debug.Trace(akCriminal + " was arrested by " + akArrestingGuard + " for murder!")
  endIf
endEvent

See Also