Difference between revisions of "CreateDetectionEvent"

478 bytes added ,  07:27, 15 January 2011
no edit summary
imported>Quetzilla
m (super useful function noted)
imported>Ez0n3
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
|origin = GECK1
|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
|returnType = void
|referenceType = [LocationREF]
|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
}}


'''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.
==Parameters==
 
*OwnerRefID = Any actor reference.
 
*iSoundLevel = 0-100, with 100 being the loudest.
=='''Syntax'''==
 
[''LocationREF''].CreateDetectionEvent [''OwnerRef''] [''SoundLevel''] [''EventType'']
 
=='''Parameters'''==
*OwnerRef = Any actor reference.
*SoundLevel = 0-100, with 100 being the loudest.
*EventType = EventTypeID (optional).
*EventType = EventTypeID (optional).
**0 = Bullet
**0 = Bullet
Line 17: Line 31:
**3 = Generic
**3 = Generic


=='''Examples'''==
==Notes==
*None at this time
*This function is new in the GECK, and was not available in the TES4 Construction Set.
 
=='''Notes'''==
*None at this time
 
 
=='''See Also'''==


==See Also==
*[[GetDetected]]
*[[GetDetectionLevel]]
*[[IsActorDetected]]


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Detection Functions]]
[[Category:Detection Functions]]
[[Category:Detection Functions (GECK 1.1)]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions]]
[[Category:Godsend Functions (GECK 1.1)]]
[[Category:Detection]]
Anonymous user