[dismiss]
This wiki is a copy of the original Skyrim CK wiki created and maintained by the UESP.net. See CreationKit:Copy Notice for more info.
SendStoryEventAndWait - Keyword
Jump to navigation
Jump to search
Member of: Keyword Script
Sends an event to the story manager using this keyword and the passed-in extra values. Waits for the event to be processed and returns whether a quest was started or not.
Syntax[edit | edit source]
bool Function SendStoryEventAndWait(Location akLoc = None, ObjectReference akRef1 = None, ObjectReference akRef2 = None, \
int aiValue1 = 0, int aiValue2 = 0) native
Parameters[edit | edit source]
- 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 Value[edit | edit source]
Whether a quest was started as a result of the event or not.
Examples[edit | edit source]
; Send the event with no extra data
if QuestEventProperty.SendStoryEventAndWait()
Debug.Trace("Quest started!")
else
Debug.Trace("No quest started")
endIf
; Send the event with only a single value
if QuestEventProperty.SendStoryEventAndWait(aiValue1 = 5)
Debug.Trace("Quest started!")
else
Debug.Trace("No quest started")
endIf