CreateDetectionEvent - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Creates a detection event at this object's location.

Syntax[edit | edit source]

Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native

Parameters[edit | edit source]

  • akOwner: The "owner" of the detection event
  • aiSoundLevel: The sound level of the detection event (0 to 100).
    • Default: 0

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Creates a detection event for Bob at the tripwire location, 0 sound
TripwireProperty.CreateDetectionEvent(Bob)


; Creates a detection event for Bob at the tripwire location, 100 sound
TripwireProperty.CreateDetectionEvent(Bob, 100)

See Also[edit | edit source]