SetDetectionState

Revision as of 23:52, 8 August 2010 by imported>CSbot (Automated import of articles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::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