CreateDetectionEvent - ObjectReference: Difference between revisions
Jump to navigation
Jump to search
imported>Jlundin No edit summary |
imported>Qqqbbb No edit summary |
||
| Line 12: | Line 12: | ||
== Parameters == | == Parameters == | ||
*akOwner: The "owner" of the detection event | *akOwner: The "owner" of the detection event | ||
*aiSoundLevel: The sound level of the detection event (0 to 100). | *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 | **'''Default''': 0 | ||
Revision as of 16:23, 25 January 2014
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)