DickHertz 32 Posted August 13, 2020 Share Posted August 13, 2020 (edited) 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, 2020 by dick hertz Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 13, 2020 Share Posted August 13, 2020 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 1 Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 13, 2020 Author Share Posted August 13, 2020 9 minutes ago, 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 Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 13, 2020 Author Share Posted August 13, 2020 (edited) 1 hour ago, 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, 2020 by dick hertz Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 13, 2020 Share Posted August 13, 2020 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. Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 13, 2020 Author Share Posted August 13, 2020 23 minutes ago, 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 Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 14, 2020 Share Posted August 14, 2020 2 hours ago, 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. Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 14, 2020 Author Share Posted August 14, 2020 51 minutes ago, 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 Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 14, 2020 Share Posted August 14, 2020 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): 1 Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 14, 2020 Author Share Posted August 14, 2020 @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 Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 14, 2020 Share Posted August 14, 2020 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). Quote Link to comment Share on other sites More sharing options...
DickHertz 32 Posted August 14, 2020 Author Share Posted August 14, 2020 3 minutes ago, 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 😛 Quote Link to comment Share on other sites More sharing options...
LMS 674 Posted August 14, 2020 Share Posted August 14, 2020 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 🙂 1 Quote Link to comment Share on other sites More sharing options...
KMM 0 Posted July 7, 2021 Share Posted July 7, 2021 What software do you use to read the game memory? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.