Difference between revisions of "GetLastTrapDetected"

From NWN Lexicon
Jump to: navigation, search
(Created page with " =GetLastTrapDetected(object)= Determines the trap last detected by the PC. object  GetLastTrapDetected(      object  oTarget = ...")
 
Line 7: Line 7:
 
Determines the trap last detected by the PC.
 
Determines the trap last detected by the PC.
  
 +
<nwscript>
 
  [[object | object ]] GetLastTrapDetected(
 
  [[object | object ]] GetLastTrapDetected(
 
      [[object | object ]] oTarget = OBJECT_SELF
 
      [[object | object ]] oTarget = OBJECT_SELF
 
  );
 
  );
 +
</nwscript>
  
 
====Parameters====
 
====Parameters====

Revision as of 20:42, 25 August 2012



GetLastTrapDetected(object)

Determines the trap last detected by the PC.

 [[object | object ]] GetLastTrapDetected(
     [[object | object ]] oTarget = OBJECT_SELF
 );

Parameters

oTarget

Creature that has last detected a trap. (Default: OBJECT_SELF)


Description

Returns the last trap detected by oTarget. Return value on error: OBJECT_INVALID



Version

1.22

See Also

functions: 

SetTrapDisabled

events: 

OnTrapTriggered Event



 author: Jody Fletcher