CreateDetectionEvent

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Manually generates a detection event. This function is typically used for things like sound traps -- hit a tripwire, something jangles and guys come to investigate if they're close enough to hear it.

Syntax

[help]
[LocationREF].CreateDetectionEvent OwnerRefID:ref iSoundLevel:int{0-100} EventType:int{0-3}

Example

CreateDetectionEvent player 100 3 

Parameters

  • OwnerRefID = Any actor reference.
  • iSoundLevel = 0-XXXX. Vanilla detection events cap at 100 for Loud events, but any positive integer can be used for iSoundLevel.
  • EventType = EventTypeID (optional).
    • 0 = Bullet
    • 1 = Beam
    • 2 = Explosion
    • 3 = Generic

See Also