en:modulebuilding:randomtraps
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:modulebuilding:randomtraps [2025/11/13 23:38] – [Static Traps On Objects] shadooow | en:modulebuilding:randomtraps [2025/11/13 23:39] (current) – [Static Traps On Objects] shadooow | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| If you trapped some object such as door or placeable, you will probably want it to grant experiences for disarming and to respawn. | If you trapped some object such as door or placeable, you will probably want it to grant experiences for disarming and to respawn. | ||
| - | First of all, set the object script **//sh_trap_disarm//** into OnDisarm event. | + | First of all, set the object script **//trap_respawn//** into OnDisarm event. |
| {{: | {{: | ||
| - | If the trap is one-shot then add also **//trap_respawn//** script into OnTrapTriggered event. | + | If the trap is one-shot then add also **//trap_triggered//** script into OnTrapTriggered event. |
| By default the trap will respawn with same type, DCs in about 1250-1450 seconds. You can change this via these variables: | By default the trap will respawn with same type, DCs in about 1250-1450 seconds. You can change this via these variables: | ||
en/modulebuilding/randomtraps.txt · Last modified: 2025/11/13 23:39 by shadooow
