GetTrapDisarmable

From NWN Lexicon
Jump to navigationJump to search



GetTrapDisarmable(object)

Determines if the specific trap is capable of being disarmed.

int GetTrapDisarmable(
    object oTrapObject
);

Parameters

oTrapObject

a placeable, door or trigger


Description

Returns TRUE if trap is disarmable. This is only done in the toolset, all traps placed by PC's in-game (and DM's) are automatically disarmable.



Remarks

Undisarmable traps can still be disarmed with SetTrapDisabled() , therefore, it is a good way to have special traps which only a lever can disable.


Version

1.22

See Also

functions: 

SetTrapDisabled

events: 

OnTrapTriggered Event



 author: Jody Fletcher, editor: Jasperre, Mistress