SetTrapActive

From NWN Lexicon


Contents

[edit] SetTrapActive(object, int)

Sets whether or not the trap is an active trap.

void SetTrapActive(
    object oTrapObject,
    int nActive = TRUE
);

[edit] Parameters

oTrapObject

A placeable, door or trigger

nActive

TRUE or FALSE. Defaults to TRUE if no value set.


[edit] Description

Sets whether or not the trap is an active trap. Inactive trap will not trigger when player step on it.



[edit] Remarks

Setting a trap as inactive will not make the trap disappear if it has already been detected. Call SetTrapDetectable .


[edit] Version

1.67

[edit] See Also

functions: 

GetTrapActive

events: 

OnTrapTriggered Event



author: Mistress

Personal tools
Categories