SendStoryEvent - Keyword

Revision as of 13:22, 1 April 2012 by imported>Fg109 (add note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Keyword Script

Sends an event to the story manager using this keyword and the passed-in extra values.

SyntaxEdit

Function SendStoryEvent(Location akLoc = None, ObjectReference akRef1 = None, ObjectReference akRef2 = None, \
  int aiValue1 = 0, int aiValue2 = 0) native

ParametersEdit

  • akLoc: The Location to send with the event.
    • Default: None
  • akRef1: The first ObjectReference to send with the event.
    • Default: None
  • akRef2: The second ObjectReference to send with the event.
    • Default: None
  • aiValue1: The first value to send with the event.
    • Default: 0
  • aiValue2: The second value to send with the event.
    • Default: 0

Return ValueEdit

None.

ExamplesEdit

; Send the event with no extra data
QuestEventProperty.SendStoryEvent()


; Send the event with only a single value
QuestEventProperty.SendStoryEvent(aiValue1 = 5)

NotesEdit

  • If sending the parameters aiValue1 or aiValue2 as negative, they will be received as 0 by the OnStoryScript event.

See AlsoEdit