OnStoryTrespass - Quest

Member of: Quest Script

Event called when this quest is started via a trespass story manager event.

SyntaxEdit

Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)

ParametersEdit

  • 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)

ExamplesEdit

Event OnStoryTrespass(ObjectReference akVictim, ObjectReference akTrespasser, Location akLocation, int aiCrime)
  if aiCrime
    Debug.Trace(akTrespasser + " trespassed on " + akVictim + " and it was reported")
  endIf
endEvent

See AlsoEdit