Jump to content

Photo

How to Prevent a Menu from Opening

menu papyrus disable prevent open close

  • Please log in to reply
8 replies to this topic

#1
BaSsGaz

BaSsGaz

    Enthusiast

  • Members
  • PipPip
  • 149 posts

Hi,

 

I'm working on a mod that disables the Wait Menu at certain conditions.

As of now, my mod only keeps closing the menu when it opens (onMenuOpen()), But it's a bit inconvenient since the menu shows up before it closes, What I would love to do, is to prevent the menu from showing up altogether

 

Is there anyway to do that ? like disable it, or override it or something ?!!



#2
NexusComa

NexusComa

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,670 posts

This may work you will have to test it out ...

 

Game.DisablePlayerControls(False, False, False, False, True, False, False, True,0)
 


#3
MrKew48

MrKew48

    Newbie

  • Members
  • Pip
  • 19 posts

I didn't test it much deeply, but SetInChargen seems to be working fine, despite on wiki is writen, that it works only in CharGen.



#4
erlinajabagat

erlinajabagat

    Newbie

  • Supporter
  • Pip
  • 18 posts

Hi,

 

I'm working on a mod that disables the Wait Menu at certain conditions.

As of now, my mod only keeps closing the menu when it opens (onMenuOpen()), But it's a bit inconvenient since the menu shows up before it closes, What I would love to do, is to prevent the menu from showing up altogether

 

Is there anyway to do that ? like disable it, or override it or something ?!!

I want to do the same - with my own conditions - but after wait menu opens, I cannot close it. Try to use disablecontrols, try tapkey (1) ?  Everything I've tested did not work.



#5
MrKew48

MrKew48

    Newbie

  • Members
  • Pip
  • 19 posts
[Deleted] Mistap

Edited by MrKew48, 13 June 2018 - 07:23 PM.


#6
MrKew48

MrKew48

    Newbie

  • Members
  • Pip
  • 19 posts

Hi,
 
I'm working on a mod that disables the Wait Menu at certain conditions.
As of now, my mod only keeps closing the menu when it opens (onMenuOpen()), But it's a bit inconvenient since the menu shows up before it closes, What I would love to do, is to prevent the menu from showing up altogether
 
Is there anyway to do that ? like disable it, or override it or something ?!!

I want to do the same - with my own conditions - but after wait menu opens, I cannot close it. Try to use disablecontrols, try tapkey (1) ?  Everything I've tested did not work.

Hi, if you want just prevent player from opening wait menu at all, use function SetInChargen as I mentioned before

#7
erlinajabagat

erlinajabagat

    Newbie

  • Supporter
  • Pip
  • 18 posts

 

 

Hi,
 
I'm working on a mod that disables the Wait Menu at certain conditions.
As of now, my mod only keeps closing the menu when it opens (onMenuOpen()), But it's a bit inconvenient since the menu shows up before it closes, What I would love to do, is to prevent the menu from showing up altogether
 
Is there anyway to do that ? like disable it, or override it or something ?!!

I want to do the same - with my own conditions - but after wait menu opens, I cannot close it. Try to use disablecontrols, try tapkey (1) ?  Everything I've tested did not work.

Hi, if you want just prevent player from opening wait menu at all, use function SetInChargen as I mentioned before

 

Yes thanks, I ve read that and tried it out and it is a possibility to prevent the waitmenu from popping up. But it is not the right thing for what I have in mind. Maybe I do not know the ideal events to enable and disable the waiting menue using this function :)



#8
MrKew48

MrKew48

    Newbie

  • Members
  • Pip
  • 19 posts

à

à

Hi,
Ãà
I'm working on a mod that disables the Wait Menu at certain conditions.
As of now, my mod only keeps closing the menu when it opens (onMenuOpen()), But it's a bit inconvenient since the menu shows up before it closes, What I would love to do, is to prevent the menu from showing up altogether
Ãà
Is there anyway to do that ? like disable it, or override it or something ?!!

I want to do the same - with my own conditions - but after wait menu opens, I cannot close it. Try to use disablecontrols, try tapkey (1) ?Ãà Everything I've tested did not work.
Hi, if you want just prevent player from opening wait menu at all, use function SetInChargen as I mentioned before
à
Yes thanks, I ve read that and tried it out and it is a possibility to prevent the waitmenu from popping up. But it is not the right thing for what I have in mind. Maybe I do not know the ideal events to enable and disable the waiting menue using this function :)
Oh, I see, you want something like: If it is sunny then disable wait menu ? Then I would tried story manager events, it could work out

Edited by MrKew48, 10 July 2018 - 10:39 PM.


#9
MrKew48

MrKew48

    Newbie

  • Members
  • Pip
  • 19 posts
I mean recieve event you want in story manager and use SetInChargen to disable or enable wait menu when event fires
Its a long time since I have last worked in CK so maybe Im wrong





Also tagged with one or more of these keywords: menu, papyrus, disable, prevent, open, close

IPB skins by Skinbox
Page loaded in: 1.165 seconds