OnStoryTrespass - Quest

From Creation Kit
Jump to: navigation, search

Member of: Quest Script

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

Syntax

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

Parameters

  • 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

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 Also