diff options
author | psi29a <psi29a@gmail.com> | 2024-02-27 17:03:25 +0000 |
---|---|---|
committer | psi29a <psi29a@gmail.com> | 2024-02-27 17:03:25 +0000 |
commit | b9fc9f0827ecd21e8ba6a8161eb3116c742e5f8e (patch) | |
tree | 0da1a08427fc2dc156233b2722a42453dbd9dc47 | |
parent | b248d700c7c549b5ca9ad895b5bd258c1deb9045 (diff) | |
parent | 98447a16909f9703886bd12b6acad48472e124c8 (diff) |
Merge branch 'ownership' into 'master'
Lua: Remove legacy ownership documentation
See merge request OpenMW/openmw!3912
-rw-r--r-- | files/lua_api/openmw/core.lua | 4 | ||||
-rw-r--r-- | files/lua_api/openmw/self.lua | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index 330f0e20a0..66fb817362 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -142,9 +142,9 @@ -- @return #string -- @usage if obj.recordId == core.getFormId('Skyrim.esm', 0x4d7da) then ... end -- @usage -- In ESM3 content files (e.g. Morrowind) ids are human-readable strings --- obj.ownerFactionId = 'blades' +-- obj.owner.factionId = 'blades' -- -- In ESM4 (e.g. Skyrim) ids should be constructed using `core.getFormId`: --- obj.ownerFactionId = core.getFormId('Skyrim.esm', 0x72834) +-- obj.owner.factionId = core.getFormId('Skyrim.esm', 0x72834) -- @usage -- local scripts -- local obj = nearby.getObjectByFormId(core.getFormId('Morrowind.esm', 128964)) -- @usage -- global scripts diff --git a/files/lua_api/openmw/self.lua b/files/lua_api/openmw/self.lua index 005017e5c3..6123c36ae6 100644 --- a/files/lua_api/openmw/self.lua +++ b/files/lua_api/openmw/self.lua @@ -22,15 +22,6 @@ -- The object the script is attached to (readonly) -- @field [parent=#self] openmw.core#GameObject object ---- NPC who owns the object or `nil` (mutable). --- @field [parent=#self] #string ownerRecordId - ---- Faction who owns the object or `nil` (mutable). --- @field [parent=#self] #string ownerFactionId - ---- Rank required to be allowed to pick up the object (mutable). --- @field [parent=#self] #number ownerFactionRank - --- -- Movement controls (only for actors) |