Enable and Disable Resting

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Emera Nova
Posts: 146
Joined: Wed Jun 11, 2014 1:31 am

Enable and Disable Resting

Post by Emera Nova »

Does anyone know what code would need placed into the game to prevent people from resting. I'd like to be able to control when the player is able to rest.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Enable and Disable Resting

Post by minmay »

return false from PartyComponent.onRest hook
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Enable and Disable Resting

Post by Isaac »

You might want to do more than that. You could also allow resting for a few moments, then display a graphic image or text that explains why they cannot rest there; and force the party awake.

*In Eye of the Beholder 2 they did just this in a certain area with respawning ants.
Post Reply