SetTrapDisarmable(object, int)
From NWN Lexicon
Jump to navigationJump to search
Sets whether or not the trapped object can be disarmed.
void SetTrapDisarmable(
object oTrapObject,
int nDisarmable = TRUE
);
Parameters
- oTrapObject
- A placeable, door or trigger.
- nDisarmable
- TRUE or FALSE. Defaults to TRUE if no value set.
Description
Sets whether or not the trap on an object can be disarmed.
Remarks
A trap that is disarmable but of a certain DC (35 by default in ruleset.2da MAX_NON_ROGUE_DISARM_LEVEL) cannot be disarmed by non-rogues. Note that a non-rogue could still recover the trap if SetTrapRecoverable is set and the DC reached, which amusingly itself hasn't got a "rogue levels only" DC, however detecting such a trap usually requires rogue levels if the DC is over 35.
Version
1.67
See Also
| functions: | |
| events: |
author: Mistress, editor: Kookoo