CreateDetectionEvent - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
(Linking to the actual explanation for detection and detection events.)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native
Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 19: Line 19:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Creates a detection event for Bob at the tripwire location, 0 sound
; Creates a detection event for Bob at the tripwire location, 0 sound
TripwireProperty.CreateDetectionEvent(Bob)
TripwireProperty.CreateDetectionEvent(Bob)
</source>
</syntaxhighlight>
<br/>
<br/>
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Creates a detection event for Bob at the tripwire location, 100 sound
; Creates a detection event for Bob at the tripwire location, 100 sound
TripwireProperty.CreateDetectionEvent(Bob, 100)
TripwireProperty.CreateDetectionEvent(Bob, 100)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Navigation menu