Background for Skyrim SE
Member of the Keyword script
voidfunctionSendStoryEvent(LocationakLoc=NONE, ObjectReferenceakRef1=NONE, ObjectReferenceakRef2=NONE, intaiValue1=0, intaiValue2=0)Native

Description

Wiki Description

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

Documentation Comment

Sends this keyword as a story event to the story manager


Caveats

CK Wiki - Notes

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

Parameters

  1. LocationakLoc=NONE

    CK Wiki Description

    The Location to send with the event.

    • Default:None
  2. ObjectReferenceakRef1=NONE

    CK Wiki Description

    The first ObjectReference to send with the event.

    • Default:None
  3. ObjectReferenceakRef2=NONE

    CK Wiki Description

    The second ObjectReference to send with the event.

    • Default:None
  4. intaiValue1=0

    CK Wiki Description

    The first value to send with the event.

    • Default:0
  5. intaiValue2=0

    CK Wiki Description

    The second value to send with the event.

    • Default:0

Examples

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

Auto-Generated Example

Location myLocation__akLoc
ObjectReference myObjectReference__akRef1
ObjectReference myObjectReference__akRef2
int myInt__aiValue1
int myInt__aiValue2

myKeyword__toCallFunctionOn.SendStoryEvent(myLocation__akLoc, myObjectReference__akRef1, myObjectReference__akRef2, myInt__aiValue1, myInt__aiValue2)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.