OnStoryTrespass - Quest
Jump to navigation
Jump to search
Member of: Quest Script
Event called when this quest is started via a trespass story manager event.
Syntax[edit | edit source]
Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)
Parameters[edit | edit source]
- akVictim: The ObjectReference who was victimized
- akTrespasser: The ObjectReference who trespassed
- akLocation: The Location where it occurred.
- aiCrime: 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[edit | edit source]
Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)
if aiCrime
Debug.Trace(akTrespasser + " trespassed on " + akVictim + " and it was reported")
endIf
endEvent