CreateDetectionEvent - ObjectReference: Difference between revisions
Jump to navigation
Jump to search
imported>Qqqbbb No edit summary |
DavidJCobb (talk | contribs) (Linking to the actual explanation for detection and detection events.) |
||
| Line 3: | Line 3: | ||
'''Member of:''' [[ObjectReference Script]] | '''Member of:''' [[ObjectReference Script]] | ||
Creates a detection event at this object's location. | Creates a [[detection event]] at this object's location. | ||
== Syntax == | == Syntax == | ||
Revision as of 10:50, 29 August 2026
Member of: ObjectReference Script
Creates a detection event at this object's location.
Syntax
Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) nativeParameters
- 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
Return Value
None.
Examples
; 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)