- Found in:
- Vanilla
boolfunctionSendStoryEventAndWait(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. Waits for the event to be processed and returns whether a quest was started or not.
Documentation Comment
Sends this keyword as a story event to the story manager and waits for it to be processed. Returns true if a quest was started.
Parameters
LocationakLoc=NONE
CK Wiki Description
The Location to send with the event.
- Default:None
ObjectReferenceakRef1=NONE
CK Wiki Description
The first ObjectReference to send with the event.
- Default:None
ObjectReferenceakRef2=NONE
CK Wiki Description
The second ObjectReference to send with the event.
- Default:None
intaiValue1=0
CK Wiki Description
The first value to send with the event.
- Default:0
intaiValue2=0
CK Wiki Description
The second value to send with the event.
- Default:0
Examples
; 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")
endIfAuto-Generated Example
Location myLocation__akLoc
ObjectReference myObjectReference__akRef1
ObjectReference myObjectReference__akRef2
int myInt__aiValue1
int myInt__aiValue2
bool returnedValue = myKeyword__toCallFunctionOn.SendStoryEventAndWait(myLocation__akLoc, myObjectReference__akRef1, myObjectReference__akRef2, myInt__aiValue1, myInt__aiValue2)Related Pages
- Keyword
- Keyword.SendStoryEvent(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
