ForceActorDetectionValue

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

A) Forces and locks the calculated detection value (a value that indicates how visible an actor is to another actor) of the calling actor to any other actor, regardless of skill, cover, lighting, perception, etc. A very low, negative value (such as -100) will render the calling actor completely undetectable by other actors, while a high positive value will render it fully detectable by any actor.

B) If the 2nd, optional argument is non-zero, the value of the 1st argument will instead be used as a modifier, and will be added/subtracted from the detection value every time it is calculated.

Calling the function and ommiting the argument, or passing 0, will restore detection mechanics on the calling actor to normal.

Syntax

[help]
reference.ForceActorDetectionValue detectionValue:int asModifier:1/0

Example

actorRef.ForceActorDetectionValue -100

Renders actorRef completely undetectable by other actors.

actorRef.ForceActorDetectionValue -15 1

Subtracts 15 from the detection values for actorRef, every time they are calculated.

See Also