Talk:Wait - Utility

From the CreationKit Wiki
Revision as of 17:34, 15 February 2012 by imported>Cipscis (→‎Note about [[IsFurnitureInUse - ObjectReference|IsFurnitureInUse]]: Looks great :))
Jump to navigation Jump to search

Note about IsFurnitureInUse

The note about using this function to check when "crafting mode" was active was added to this page because Wait can be used to cause a script to wait for a menu to close before executing more code. However, even though the various "crafting modes" cause menus to display, they don't cause the game to enter "menu mode", and Wait cannot be used in this way.

The wording of the note didn't make its relevance particularly clear, though, I'll admit. Perhaps the best approach would be to leave the note where it currently is, on IsInMenuMode and add that function to the "See Also" section here. What do you think?

-- Cipscis 04:56, 15 February 2012 (EST)

Interesting, thank you! :) You're right. I was thinking "this function can't be used to detect menus at all, it explicitly ignores them... why would someone using it, care about menus?" I had not considered this use of wait to detect the *absence* of a menu. I've had a bash at a couple lines to explain this for newbies like me - whatcha think? --Catwheezle 17:31, 15 February 2012 (EST)
That looks much better, thanks :)
And while I'm thanking you, thanks for all of the great edits you've been making - you've certainly been busy here and that's excellent!
-- Cipscis 17:34, 15 February 2012 (EST)