Difference between revisions of "GetDetected"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>Saebel
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
   GetDetected TargetID
   [''ActorID''.]GetDetected ''TargetID''
'''Example:'''
'''Example:'''
   GetDetected player  
   GetDetected player  
Line 7: Line 7:
Returns 1 if the TargetID is currently detected by the calling actor.
Returns 1 if the TargetID is currently detected by the calling actor.


== Notes ==
*Can crash if TargetID is [[GetDead|dead]] or [[Disable|disabled]].
*Using GetDetected calls Oblivion's detection protocol.  In a case where a mod specifically hooks and alters that detection protocol (such as SDR), then scripts created by that mod will get called as well.  Using [[GetDetectionLevel]] does not appear to do that, and may be a more efficient alternative.
==See Also==
[[IsActorDetected]]
[[GetDetectionLevel]]
[[:Category:Detection]]


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category:Actor Functions]]
[[Category:Actor Functions (CS 1.0)]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions (CS 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions (CS 1.0)]]
<!-- Begin Search Terms
Get
Detected
End Search Terms -->

Latest revision as of 12:25, 7 March 2013

Syntax:

 [ActorID.]GetDetected TargetID

Example:

 GetDetected player 


Returns 1 if the TargetID is currently detected by the calling actor.

Notes[edit | edit source]

  • Using GetDetected calls Oblivion's detection protocol. In a case where a mod specifically hooks and alters that detection protocol (such as SDR), then scripts created by that mod will get called as well. Using GetDetectionLevel does not appear to do that, and may be a more efficient alternative.

See Also[edit | edit source]

IsActorDetected

GetDetectionLevel

Category:Detection