OnStoryArrest - Quest

Member of: Quest Script

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

SyntaxEdit

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

ParametersEdit

  • 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

ExamplesEdit

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 AlsoEdit