I'm adding extra locked crates to some red card rooms and don't want the crate to respawn if they just sit there and camp it. Just like vanilla behavior, could you add a toggle option to prevent it from spawning if players are too close? Also, could the timer reset once the loot is taken?
Prevent spawning if player too close option?Solved
Yeah I can probably add this. Some of the vanilla ones work bases on puzzle resets (when the puzzle resets, specific spawn groups will reset to respawn loot and NPCs when doors lock), which I think checks for players. For the short term, I can probably add a standalone feature for spawn groups. Not sure if I will do the timer reset once the loot is taken since that isn't how vanilla works.
For the long term, I am planning to add support for electrical wiring in the future, which will probably need a puzzle reset feature, but I hadn't thought about associating new spawn groups to existing puzzles, which might be something I could do as well.
I just released v0.14.0 which adds multiple capabilities for this use case.
Since you were adding extra loot to an existing puzzle, I recommend the following.
- Run
maspawngroup set RespawnDelayMax 0while aiming at the spawn point to disable scheduled respawns - Run
maspawngroup set RespawnWhenNearestPuzzleResets truewhile aiming at the spawn point to make it auto respawn when the puzzle resets
Excellent! Nice work, will give it a shot
Locked automatically