GetTrapDetectedBy(object, object)

From NWN Lexicon
Jump to navigationJump to search

Determines whether a creature has detected a specific trap.

int GetTrapDetectedBy(
    object oTrapObject,
    object oCreature
);

Parameters

oTrapObject
a placeable, door or trigger
oCreature
The creature to do the check on.

Description

Returns TRUE if oCreature has detected the trap.

Remarks

Using SetTrapDetectedBy on an object without a trap makes the trap visible once you add one.

Version

1.22

See Also

functions: 

SetTrapDetectedBy

events: 

OnTrapTriggered Event



 author: Jody Fletcher, editor: Mistress