diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index 1ffc60f6d5..30db9b6791 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -62,22 +62,6 @@ -- @param #string setting Setting name -- @return #any ---- --- Get the terrain height at a given location. --- @function [parent=#core] getHeightAt --- @param openmw.util#Vector3 position --- @param #any cellOrName (optional) cell or cell name in their exterior world space to query --- @return #number - ---- --- Get the terrain texture at a given location. --- @function [parent=#core] getLandTextureAt --- @param openmw.util#Vector3 position --- @param #any cellOrName (optional) cell or cell name in their exterior world space to query --- @return #nil, #number Land texture index or nil if failed to retrieve the texture --- @return #nil, #number Plugin id or nil if failed to retrieve the texture --- @return #nil, #string Texture path or nil if one isn't defined - --- -- Return l10n formatting function for the given context. -- Localisation files (containing the message names and translations) should be stored in @@ -466,10 +450,30 @@ -- @usage for _, item in ipairs(inventory:findAll('common_shirt_01')) do ... end +--- @{#Land}: Functions for interacting with land data +-- @field [parent=#core] #Land land + + --- @{#Magic}: spells and spell effects -- @field [parent=#core] #Magic magic +--- +-- Get the terrain height at a given location. +-- @function [parent=#Land] getHeightAt +-- @param openmw.util#Vector3 position +-- @param #any cellOrName (optional) cell or cell name in their exterior world space to query +-- @return #number + +--- +-- Get the terrain texture at a given location. +-- @function [parent=#Land] getLandTextureAt +-- @param openmw.util#Vector3 position +-- @param #any cellOrName (optional) cell or cell name in their exterior world space to query +-- @return #nil, #number Land texture index or nil if failed to retrieve the texture +-- @return #nil, #number Plugin id or nil if failed to retrieve the texture +-- @return #nil, #string Texture path or nil if one isn't defined + --- Possible @{#SpellRange} values -- @field [parent=#Magic] #SpellRange RANGE