mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-08 11:38:19 +03:00
Lua commands world.pause / world.unpause
This commit is contained in:
parent
91c7585c8b
commit
6c4e1f4e8f
8 changed files with 80 additions and 44 deletions
|
@ -106,6 +106,21 @@
|
|||
-- @function [parent=#world] isWorldPaused
|
||||
-- @return #boolean
|
||||
|
||||
---
|
||||
-- Pause the game starting from the next frame.
|
||||
-- @function [parent=#world] pause
|
||||
-- @param #string tag (optional) The game will be paused until `unpause` is called with the same tag.
|
||||
|
||||
---
|
||||
-- Remove given tag from the list of pause tags. Resume the game starting from the next frame if the list became empty.
|
||||
-- @function [parent=#world] unpause
|
||||
-- @param #string tag (optional) Needed to undo `pause` called with this tag.
|
||||
|
||||
---
|
||||
-- The tags that are currently pausing the game.
|
||||
-- @function [parent=#world] getPausedTags
|
||||
-- @return #table
|
||||
|
||||
---
|
||||
-- Return an object by RefNum/FormId.
|
||||
-- Note: the function always returns @{openmw.core#GameObject} and doesn't validate that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue