OnStoryTrespass - Quest

Revision as of 16:26, 17 November 2011 by imported>Henning
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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