SetTrapDisabled
From NWN Lexicon
Contents
SetTrapDisabled(object)
Disables the trap on the specified object.
void SetTrapDisabled( object oTrap );
Parameters
oTrap
a placeable, door or trigger.
Description
Disable oTrap.
Remarks
Can be used to create a mechanism to disarm a trap such as pulling a lever.
Disabling the trap is the same as manually disarming it and such will trigger trap's OnDisarm event.
Version
1.22
Example
// diables a trap that is on an object with Tag "Chest1" void main() { object oTrap = GetObjectByTag("Chest1"); SetTrapDisabled(oTrap); }
See Also
functions: |
author: Chaz Mead, editor: Jochem van 't Hull