eventOnStoryArrest(ObjectReferenceakArrestingGuard, ObjectReferenceakCriminal, LocationakLocation, intaiCrime)
Description
Wiki Description
Event called when this quest is started via an arrest story manager event.
Parameters
ObjectReferenceakArrestingGuard
CK Wiki Description
The ObjectReference of the guard that arrested the criminal.
ObjectReferenceakCriminal
CK Wiki Description
The ObjectReference that was arrested.
LocationakLocation
CK Wiki Description
The Location where it happened.
intaiCrime
CK Wiki Description
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
endEventAuto-Generated Example
Scriptname MyCoolScript extends Quest
event OnStoryArrest(ObjectReference akArrestingGuard, ObjectReference akCriminal, Location akLocation, int aiCrime)
Debug.trace("Event received - OnStoryArrest: akArrestingGuard = " + akArrestingGuard + " akCriminal = " + akCriminal + " akLocation = " + akLocation + " aiCrime = " + aiCrime)
endEvent