GetDetectionValue

From the Fallout3 GECK Wiki
Revision as of 18:10, 15 February 2017 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns a value indicating how '''visible''' the target actor is to the calling actor. A value lower than zero indicates the calling acto...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns a value indicating how visible the target actor is to the calling actor. A value lower than zero indicates the calling actor does not detect the target actor, whilst a value higher than zero indicates the target actor is detected by the calling actor. The higher the absolute value, the more the target actor is visible to/concealed from the calling actor.

Syntax

[help]
(detectionValue:int) reference.GetDetectionValue targetActor:ref

Example

set iDetectionValue to actorRef.GetDetectionValue player

Returns how visible the player character is to actorRef.

See Also