Background for Fallout 4
Member of the Keyword script
boolfunctionSendStoryEventAndWait(LocationakLoc=NONE, ObjectReferenceakRef1=NONE, ObjectReferenceakRef2=NONE, intaiValue1=0, intaiValue2=0)Native

[DEV SERVER] Loading description...


Caveats


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")
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.