Jump to content

Locked Doors


DickHertz
 Share

Recommended Posts

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 by dick hertz
Link to comment
Share on other sites

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?

Untitled.jpg

Edited by dick hertz
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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):

image.png

  • Thanks 1
Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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 😛

Link to comment
Share on other sites

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 🙂

  • Thanks 1
Link to comment
Share on other sites

  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...