From 8df9310ad012e1ed0a43e5f8a8dae57f3df54945 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 28 Oct 2025 17:06:45 +0000 Subject: [PATCH] Mention NpcRecord in createRecord docs See merge request OpenMW/openmw!4967 (cherry-picked from 4aa0edf8957) --- files/lua_api/openmw/world.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/files/lua_api/openmw/world.lua b/files/lua_api/openmw/world.lua index 0b3e3f2e40..f578ec375e 100644 --- a/files/lua_api/openmw/world.lua +++ b/files/lua_api/openmw/world.lua @@ -166,18 +166,19 @@ -- potion = world.createObject('Generated:0x0', 1) --- --- Creates a custom record in the world database; String ids that came from ESM3 content files are lower-cased. +-- Creates a custom record in the world database; string IDs that came from ESM3 content files are lower-cased. -- Eventually meant to support all records, but the current -- set of supported types is limited to: -- --- * @{openmw.types#PotionRecord}, +-- * @{openmw.types#ActivatorRecord}, -- * @{openmw.types#ArmorRecord}, -- * @{openmw.types#BookRecord}, --- * @{openmw.types#MiscellaneousRecord}, -- * @{openmw.types#ClothingRecord}, --- * @{openmw.types#WeaponRecord}, --- * @{openmw.types#ActivatorRecord}, --- * @{openmw.types#LightRecord} +-- * @{openmw.types#LightRecord}, +-- * @{openmw.types#MiscellaneousRecord}, +-- * @{openmw.types#NpcRecord}, +-- * @{openmw.types#PotionRecord}, +-- * @{openmw.types#WeaponRecord} -- @function [parent=#world] createRecord -- @param #any record A record to be registered in the database. Must be one of the supported types. The id field is not used, one will be generated for you. -- @return #any A new record added to the database. The type is the same as the input's.