GetDetectingActors

From GECK

Revision as of 02:31, 9 October 2015 by Jazzisparis (Talk | contribs) (Created page with "{{Function |origin = JIP |summary = Returns an '''array_var''' containing all actors currently detecting, in some level, the calling actor. The optional <i>filter</i> parame...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A function added by the JIP NVSE Plugin.

Description

Returns an array_var containing all actors currently detecting, in some level, the calling actor. The optional filter parameter may be used for specifying level(s) of detection.

Syntax

(detectingActors:array_var) reference.GetDetectingActors filter:int

Detection-Level Filter Values

1	Unseen (corresponds to "Caution")
2	Noticed (corresponds to "Danger")
4	Seen (corresponds to flashing "Danger")

Example

let aDetecting := actorRef.GetDetectingActors

Will return all actors by which actorRef is currently detected in any level.

let aDetecting := actorRef.GetDetectingActors 1

Will return all actors by which actorRef is currently "Unseen".

let aDetecting := actorRef.GetDetectingActors 6

Will return all actors by which actorRef is currently "Noticed" or "Seen".

See Also

Personal tools