SetTrapOneShot(object, int)

Sets whether or not the trap is a one-shot trap. Meaning whether or not the trap resets itself after firing.

void SetTrapOneShot(
    object oTrapObject,
    int nOneShot = TRUE
);

Parameters

oTrapObject

A placeable, door or trigger.

nOneShot

TRUE or FALSE. Defaults to TRUE (one-shot) if no value set.


Description

Sets whether or not the trap is a one-shot trap. Meaning whether or not the trap resets itself after firing.



Version

1.67

See Also

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


author: Mistress, editor: Kookoo