Difference between revisions of "GetDetectionLevel"

880 bytes added ,  14:54, 2 August 2010
no edit summary
imported>Kkuhlmann
 
imported>Pkleiss
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/GetDetectionLevel GetDetectionLevel].
{{Function
|CSWikiPage = GetDetectionLevel
|origin = GECK1
|summary = Used to check the current detection level for the calling actor for the TargetActor.
|name = GetDetectionLevel
|returnVal = 0, 1, 2, 3
|returnType = int
|referenceType = [Actor]
|arguments =
  {{FunctionArgument
  |Name = target
  |Type = actorRef
  }}
|example = <pre>Molerat01Ref.GetDetectionLevel player</pre>
Returns a value based upon how well the molerat detects the player.
}}
 
==Notes==
 
In testing this function appears to be broken as it does not return any value other than 0 when the player is the target. It will only return a value of 3 or 0 for all other cases where the player is not the target.
 
* Returns 0-3 for the levels of detection:
** 0 = Lost ("Undetected")
** 1 = Unseen ("Caution")
** 2 = Noticed ("Danger")
** 3 = Seen (flashing "Danger")
 
==See Also==
*[[GetDetected]]
*[[IsActorDetected]]


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