GetDetectionValue

From GECK
Jump to: navigation, search


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.

Notes

  • This value stops updating after the calling actor has died. It is only refreshed when exiting the actor's cell, where it will be set to -100.

See Also