mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-08 03:28:15 +03:00
Add global variable access to world.mwscript (#7597)
This commit is contained in:
parent
a08ca11c34
commit
db42a91867
2 changed files with 57 additions and 0 deletions
|
@ -29,6 +29,12 @@
|
|||
-- @param openmw.core#GameObject player (optional) Will be used in multiplayer mode to get the script if there is a separate instance for each player. Currently has no effect.
|
||||
-- @return #MWScript, #nil
|
||||
|
||||
---
|
||||
-- Returns mutable global variables. In multiplayer, these may be specific to the provided player.
|
||||
-- @function [parent=#MWScriptFunctions] getGlobalVariables
|
||||
-- @param openmw.core#GameObject player (optional) Will be used in multiplayer mode to get the globals if there is a separate instance for each player. Currently has no effect.
|
||||
-- @return #list<#number>
|
||||
|
||||
---
|
||||
-- Returns global mwscript with given recordId. Returns `nil` if the script doesn't exist or is not started.
|
||||
-- Currently there can be only one instance of each mwscript, but in multiplayer it will be possible to have a separate instance per player.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue