eventOnStoryTrespass(ObjectReferenceakVictim, ObjectReferenceakTrespasser, LocationakLocation, intaiCrime)
Description
Wiki Description
Event called when this quest is started via a trespass story manager event.
Parameters
ObjectReferenceakVictim
CK Wiki Description
The ObjectReference who was victimized
ObjectReferenceakTrespasser
CK Wiki Description
The ObjectReference who trespassed
LocationakLocation
CK Wiki Description
The Location where it occurred.
intaiCrime
CK Wiki Description
Is this a crime? This is actually a bool, and Papyrus will handle it correctly if you use it in an if or cast it to a bool. 0 = false, non-zero = true. (Story manager cannot handle bools, so it sends an int instead)
Examples
Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)
if aiCrime
Debug.Trace(akTrespasser + " trespassed on " + akVictim + " and it was reported")
endIf
endEventAuto-Generated Example
Scriptname MyCoolScript extends Quest
event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)
Debug.trace("Event received - OnStoryTrespass: akVictim = " + akVictim + " akTrespasser = " + akTrespasser + " akLocation = " + akLocation + " aiCrime = " + aiCrime)
endEvent