Hi! Is there a way to open a door with scripts? (I'm using C08Modpack and Temple+) By "open," I mean with the animation included. I would like to create a situation where a door in front of the party opens by itself at a particular moment. Code: obj.portal_flag_set(toee.OPF_OPEN) It appears to work only on visibility.The door remains closed, but the party is allowed to see through it. Code: obj.portal_toggle_open() This open or close the portal. It seems to start the opening animation but just for a frame. The door remains closed, but the party or npc characters are allowed to pass through it. Code: obj.portal_flag_unset(toee.OPF_LOCKED) Work as intented and I can lock and unlock the door with no issues.
I've been ruminating on this... I would add a time delay before it happens, say 0.1 seconds, and see if that works. EDIT: That is, fire obj.portal_toggle_open() from a delayed script.
Thanks, Ted. I think I have already tried the timevent method too. I wasn't able to find a proper solution, so I decided to change the design and have the rat swarm break down the doors. I am using Anatoliy's mods as a learning ground and starting point for a remake of the A Dark Stormy Knight adventure, but I am making some changes to the adventure design to better fit the gameplay. Here's a quick video of the latest progress on the first encounter:
Animation is kind of buggy, but still: Code: target.portal_flag_unset(toee.OPF_LOCKED) target.portal_toggle_open() I added special tactic action for NPC to open a door while in combat: https://github.com/anatoliy-savchak...c/zmod_gmd0_core/scr/tpModifiers/open_door.py