SetDetectionState

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(void) reference.SetDetectionState actor:ref detectionState:short

Sets the detection state of the calling actor toward the specified actor reference. Note that Oblivion recalculates this value frequently for actors in high process; the function's main purpose is to reset the detection state of unconscious actors.


Detection State Codes

The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed :

 0	Lost
 1	Unseen
 2	Noticed
 3	Seen