Hi All,
I had an idea to create respawning doors to prevent the eventual all doors in the module being destroyed by players either purposely or accidentally. After many hours or trying different things without success, I eventually gave up the idea of respawning the doors, and tried instead to pretend they were destroyed by making them invisible or something ... but this didnt seem to work either as it appears effects cannot be applied to doors (or at least I couldn't find a way).
Then I though maybe I could change their appearance - if the 'Appearance' is set to NONE, or the 'Door State' is set to 'Destroyed' in the Toolset the door is invisible, but I cant find any way to set either of these parameters via a script. I also tried changing the size using the SetScale command to scale the door to 0.01, 0.01, 0.01 ... which in the Toolset using the Scale parameter makes the door small enough to be nigh invisible, but the SetScale command in scripting seems only to act on monsters or placeables
...
Finally I gave up on trying to hide the door or make it appear to be destroyed, and just let it open after being bashed and then the PC can't interact with it anymore - it would give a message like "This door is broken" for some period of time until it closes and resets itself." Yet the lack of abilities to script doors still confronts me - all I want now is the door to open from the opposite direction it was bashed from (since it looks pretty stupid if you Critical it with a greataxe and it opens towards you) ... but it doesnt seem to accept the SetFacing command to change its direction. I'm getting very frustrated with this and any help would be greatly appreciated
Below is my current OnDamaged script that attempts to make the door open from the opposite direction it was bashed from. I eventually want to add some code to restore its hit points but given the difficulties I've faced so far i wonder if its even possible to heal a door ...





Retour en haut






