CreateDetectionEvent - ObjectReference

Revision as of 15:19, 21 October 2011 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Creates a detection event at this object's location.

Syntax

Function CreateDetectionEvent(Actor akOwner, int aiSoundLevel = 0) native

Parameters

  • akOwner: The "owner" of the detection event
  • aiSoundLevel: The sound level of the detection event (0 to 100).
    • 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)

See Also