CreateDetectionEvent - ObjectReference
From Creation Kit
Member of: ObjectReference Script
Creates a detection event at this object's location.
Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native
- akOwner: The "owner" of the detection event
- aiSoundLevel: The sound level of the detection event (0 to 100). Values bigger than 100 are not used in vanilla scripts but they work.
- Default: 0
; 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)