How to judge that the menu is closed?
Is there any way to judge the menu has been closed?:3
|
Re: How to judge that the menu is closed?
Do you want to detect the moment when menu was closed, or just to check if a specific menu is not still open?
|
Re: How to judge that the menu is closed?
You could set a function to execute when player selects the exit key.
Code:
Quick example. Mobile post might not be indented sorry. |
Re: How to judge that the menu is closed?
Quote:
|
Re: How to judge that the menu is closed?
Quote:
But there are lots of way to close menu like : create a new menu to cancel the menu you are using |
Re: How to judge that the menu is closed?
|
Re: How to judge that the menu is closed?
Use boolean variables .. Put on a specific boolean variable for each menu you have .. and suppose the menu is opened and then some other menu is opened .. the variable associated with previous menu is never turned false while the variable declared for other menu is set to true .. now you know what actually happened.
|
Re: How to judge that the menu is closed?
You can try with what Yami gave you, but there is also an CBasePlayer offset which determines which menu is currently open. You can use that to check for your menu(if you are using old menu system).
|
Re: How to judge that the menu is closed?
ok
trying!!:3 |
Re: How to judge that the menu is closed?
Quote:
could you demonstrate how to use it i try it but there is no any result.. |
| All times are GMT -4. The time now is 21:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.