Jump to content

Scripted PipBoy close


Hofstadter

Recommended Posts

I've created a mod that works by activating an item in the Aid menu and then essentially teleporting the player and any followers to a specific location. When I activate the item in the pipboy it teleports me immediately and when I arrive the pipboy is still open, but with nothing displayed on the screen until I close and reopen it. Is there a script to either force the player to exit the pipboy or wait to execute the rest of the script until the pipboy is closed?

 

Thanks ahead of time!

Link to comment
Share on other sites

I don't know of any methods, but hopefully someone does.

 

What I'd suggest is this. When player activates the item, if the game is in MenuMode, display a message that PipBoy must be closed to proceed, and if it is in GameMode (or when it switches to GameMode once PipBoy is closed), perform the main action. Some popular mods also use this approach.

Link to comment
Share on other sites

If I remember correctly, DisablePlayerControls can force the player to close the PipBoy. Other than that, I think NVSE's TapControl is the only other way to force the PipBoy to be closed via script.

 

Waiting until GameMode alone might not be enough for a seamless transition, as (once again, if I remember correctly) GameMode begins well before the animation played for putting away the PipBoy has been completed. If you use this approach, I recommend also using a short timer (half a second ought to be enough) to make sure the animation has finished before you do anything else.

 

Cipscis

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...