Holding a door open with a lock in place command
-
I've written a small script that holds a door open by locking it in place. It works like I want it to but due to my limited knowledge of coding, I have to do it on a per object basis. See the video below.
https://mega.nz/file/utU3CaxC#_xTcboHvNrTY_tXw_2aWArHTvBLzyq-3-u_VO5O_pzY
Is there native similar to something like IS_OBJECT_A_DOOR or something, so I can automatically detect a door or gate in the player's immediate vacinity?
-
There isn't a native like that as far as I know. There might be some way to check by reading memory, but I'm not familiar with that.
You'll probably need to make a list of all door models. Maybe search this list for "door" and "gate".
-
I have no idea how to read memory, so yeah, probably a list is the way to go. Thanks.