I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?
All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.
Thanks
Edit:
Ok, so it is possible. Thanks eTarPu!