1,482
edits
DavidJCobb (talk | contribs) (Linking to the actual explanation for detection and detection events.) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native | Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
< | <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) | ||
</ | </syntaxhighlight> | ||
<br/> | <br/> | ||
< | <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) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] | ||