Difference between revisions of "OnMenuOpenCloseEvent - ScriptObject"
OnMenuOpenCloseEvent - ScriptObject (edit)
Revision as of 10:43, 26 February 2018
, 10:43, 26 February 2018→Notes: >_> seems I can preview as much as I like and still miss some typos.
imported>Headbomb |
imported>Scrivener07 m (→Notes: >_> seems I can preview as much as I like and still miss some typos.) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''Member of:''' [[ScriptObject Script|ScriptObject]] | '''Member of:''' [[ScriptObject Script|ScriptObject]] | ||
Line 20: | Line 17: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Function SomeFunction() | Function SomeFunction() | ||
RegisterForMenuOpenCloseEvent() ; Before we can use OnMenuOpenCloseEvent we must register. | RegisterForMenuOpenCloseEvent("LockpickingMenu") ; Before we can use OnMenuOpenCloseEvent we must register. | ||
EndFunction | EndFunction | ||
Line 31: | Line 28: | ||
endEvent | endEvent | ||
</source> | </source> | ||
== Menus == | |||
{{Template:Menus}} | |||
== Notes == | == Notes == | ||
*Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | *Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | ||
* | *If you want a script to do things after a terminal has been 'exited' that has been displayed through a holotape from the pipboy, you need to register for the pipboy menu. TerminalMenu and TerminalHolotapeMenu will not work. When the terminal is 'exited', you are send back to the pipboy menu. | ||
== See Also == | == See Also == | ||
Line 84: | Line 40: | ||
*[[RegisterForMenuOpenCloseEvent - ScriptObject]] | *[[RegisterForMenuOpenCloseEvent - ScriptObject]] | ||
*[[UnregisterForMenuOpenCloseEvent - ScriptObject]] | *[[UnregisterForMenuOpenCloseEvent - ScriptObject]] | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Events]] | |||
[[Category:User Interface]] |