Not to mention that would add a bit of realism to the whole thing.zornor90 wrote:This is a good idea, I may go with this!
Just don't forget to add at least a sound effect when a player presses a button, to let him know the closing failed (or a "door starts to close and re-opens" animation if you're really in the mood).
Also, you will need a plan for special doors (the ones that have a delayed closing come to mind).
Lovely !zornor90 wrote:Actually found something else earlier today. The new highlighting system was calling update() in every single interactable object in the facility even when not updating, using almost 0.04ms a frame on my fast machine (which means that a standard machine was seeing anywhere from .10 to .20 a frame)! That's a quarter of what the pathfinding engine uses at peak load!
I've changed it to add/ remove the highlighting system component when the user hovers over the object, which combined with my door fixes should make performance a lot better, especially as I add more items and rooms!