Beta 2.1.18

Talk about anything related to Legend of Grimrock 2 here.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: Beta 2.1.18

Post by Isaac »

minmay wrote:That solution won't work if you want the user to see or interact with the door, or if you want to close the door instead of opening it, or a bunch of other things.
I wouldn't... I would only use setDoorState() where the player could never see the door suddenly open, but where I did not want to destroy the door; perhaps wanting to close it again.

*Specifically I would use it on secret doors used as walls. Any normal door that opened I would likely want it to be heard, or not care if it was.
I've been told that setDoorState() is only used to set the initial state of the doors when the map loads.

What function did you see that did not work, prior to yours ~labeled that does?
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Beta 2.1.18

Post by minmay »

That comment refers to the builtin setDoorState().
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.
Post Reply