OnStoryArrest - Quest
Jump to navigation
Jump to search
Member of: Quest Script
Event called when this quest is started via an arrest story manager event.
Syntax[edit | edit source]
Event OnStoryArrest(ObjectReference akArrestingGuard, ObjectReference akCriminal, Location akLocation, int aiCrime)
Parameters[edit | edit source]
- 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[edit | edit source]
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