Background for Fallout 4
Member of the Keyword script
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

  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
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

Auto-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


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.