My guide to creating locked / unlockable doors (PS4)
I haven't seen anything on this yet so for those who don't know, this is how you can script doors to lock/unlock
To lock a dynamic door, you can block it using a dynamic shape and unlock it by unspawning the shape.
The best shape for this is the ‘Wood Plank.’ Place the plank against the door and wedge part of it inside a tight gap using static shapes. This will keep the plank from moving and should block the door. Then you can customise the door angle so that it only opens in one direction, towards the wedge/plank. (you may need a few planks so its strong enough that it can't be kicked open.)
To unlock it, unspawn the plank – I usually script it to unlock on the destruction of the ‘Animal Chain Lock’ or some kind of power supply.
This can also be done with generic dynamic shapes but their physics don't work until you give them a nudge. If you spawn another dynamic shape to fall on it and nudge it, this should do the trick.