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.


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: GetLastTrapDetected | GetTrapBaseType | GetTrapCreator | GetTrapDetectable | GetTrapDetectDC | GetTrapDisarmable | GetTrapFlagged | GetTrapKeyTag | GetTrapOneShot
categories: Traps Functions


 author: Chaz Mead, editor: Jochem van 't Hull