Difference between revisions of "CreateDetectionEvent"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Ez0n3
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Description==
{{Function
 
|origin = GECK1
'''CreateDetectionEvent''' 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.
|summary = 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.
 
|name = CreateDetectionEvent
==Syntax==
|returnType = void
 
|referenceType = [LocationREF]
  [''LocationREF''].CreateDetectionEvent [''OwnerRef''] [''SoundLevel''] [''EventType'']
|arguments =
  {{FunctionArgument
  |Name = OwnerRefID
  |Type = ref
  }}{{FunctionArgument
  |Name = iSoundLevel
  |Type = int
  |Value = 0-100
  }}{{FunctionArgument
  |Name = EventType
  |Type = int
  |Value = 0-3
  |Optional = y
  }}
  |example = CreateDetectionEvent player 100 3
}}


==Parameters==
==Parameters==
*OwnerRef = Any actor reference.
*OwnerRefID = Any actor reference.
*SoundLevel = 0-100, with 100 being the loudest.
*iSoundLevel = 0-100, with 100 being the loudest.
*EventType = EventTypeID (optional).
*EventType = EventTypeID (optional).
**0 = Bullet
**0 = Bullet
Line 15: Line 30:
**2 = Explosion
**2 = Explosion
**3 = Generic
**3 = Generic
==Examples==
*None at this time


==Notes==
==Notes==
Line 28: Line 40:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]
[[Category:Functions (GECK 1.1)]]
[[Category:Detection Functions]]
[[Category:Detection Functions]]
[[Category:Detection Functions (GECK 1.0)]]
[[Category:Detection Functions (GECK 1.1)]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions (GECK 1.0)]]
[[Category:Godsend Functions (GECK 1.1)]]
[[Category:Detection]]

Latest revision as of 07:27, 15 January 2011

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

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-100, with 100 being the loudest.
  • EventType = EventTypeID (optional).
    • 0 = Bullet
    • 1 = Beam
    • 2 = Explosion
    • 3 = Generic

Notes

  • This function is new in the GECK, and was not available in the TES4 Construction Set.

See Also