Posted August 13, 20204 yr Is there a native for setting normally locked doors to be unlocked? I was given the hashes to spawn in Braithwaite manor and I've gotten it to load on startup but the doors are locked, but when i spawn it in with Rampage they're unlocked. Edit: I found this and I think it could be what I'm looking for but I'm sure what I would put in for the parameters DOOR_SYSTEM_SET_DOOR_STATE( Any p0, Any p1 ) Edited August 13, 20204 yr by dick hertz
August 13, 20204 yr That is the correct native, first param is the door hash, second is the state. 0 = unlocked 1 = locked 2 = locked, but can be kicked in
August 13, 20204 yr Author On 8/13/2020 at 6:42 PM, LMS said: That is the correct native, first param is the door hash, second is the state. 0 = unlocked 1 = locked 2 = locked, but can be kicked in Awesome thank you
August 13, 20204 yr Author On 8/13/2020 at 6:42 PM, LMS said: That is the correct native, first param is the door hash, second is the state. 0 = unlocked 1 = locked 2 = locked, but can be kicked in I tried this and they're still locked for me. Did I enter them incorrectly? Edited August 13, 20204 yr by dick hertz
August 13, 20204 yr Whereabouts are these doors? I can check myself and see if they work for me. Some doors are constantly being relocked by the game scripts, which could complicate matters. The sheriff door in Valentine's is one example, early on in the game it is always locked for you - we had to work around that.
August 13, 20204 yr Author On 8/13/2020 at 10:03 PM, LMS said: Whereabouts are these doors? I can check myself and see if they work for me. Some doors are constantly being relocked by the game scripts, which could complicate matters. The sheriff door in Valentine's is one example, early on in the game it is always locked for you - we had to work around that. That could be it then they're the Braithwaite manor doors, I'm in the epilogue but spawned it back in with imaps. Probably still locked by some other script until you have the mission there
August 14, 20204 yr On 8/13/2020 at 10:27 PM, dick hertz said: That could be it then they're the Braithwaite manor doors, I'm in the epilogue but spawned it back in with imaps. Probably still locked by some other script until you have the mission there Please provide me with the exact coordinates and I can verify.
August 14, 20204 yr Author On 8/14/2020 at 1:12 AM, LMS said: Please provide me with the exact coordinates and I can verify. X=1011.102 Y=-1761.369 Z=47.604 They're the doors on the mansion. Thanks for helping out I'm new to modding if you hadn't noticed lol
August 14, 20204 yr The hashes for the two doors (they are single doors) are: 55C8DDE4 (right) 5F12F078 (left) Example when setting the state to (in doors view, so reversed order):
August 14, 20204 yr Author @LMS Thanks man it worked this time! Might I ask what you used to get those hashes, I used Rampage Trainer and the ones I got were completely different
August 14, 20204 yr I read all currently loaded doors from memory, then get their positions and compare them to the player location. I don't think you can get the hash via natives (at least I don't know how).
August 14, 20204 yr Author On 8/14/2020 at 8:49 PM, LMS said: I read all currently loaded doors from memory, then get their positions and compare them to the player location. I don't think you can get the hash via natives (at least I don't know how). Where can I find the memory? Sorry for all the questions lol you've been extremely helpful 😛
August 14, 20204 yr From game memory, if you are not familiar with what that means I'd recommend sticking to normal mod development first as it's a bit of its own world. And no problem 🙂
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.