SetTrapDetectable(object, int)

Sets whether or not the trapped object can be detected.

void SetTrapDetectable(
    object oTrapObject,
    int nDetectable = TRUE
);

Parameters

oTrapObject

A placeable, door or trigger.

nDetectable

TRUE or FALSE. If no value set, defaults to TRUE.


Description

Sets whether or not the trap on an object can be detected.



Remarks

Setting a trapped object to not be detectable will not make the trap disappear if it has already been detected.


Version

1.67

See Also

functions:  GetTrapDetectable
categories:  Traps Functions
events:  OnDisarm Event | OnTrapTriggered Event


author: Mistress, editor: Kookoo