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.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.
*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?