Skip to content

Commit

Permalink
Rename to Died
Browse files Browse the repository at this point in the history
  • Loading branch information
Assumeru committed Dec 4, 2023
1 parent ad68b7e commit efb819b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/openmw/mwlua/luamanagerimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ namespace MWLua
{
if (actor.isEmpty())
return;
mLuaEvents.addLocalEvent({ getId(actor), "OnDeath", {} });
mLuaEvents.addLocalEvent({ getId(actor), "Died", {} });
}

void LuaManager::useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force)
Expand Down
4 changes: 2 additions & 2 deletions docs/source/reference/lua-scripting/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Built-in events
Actor events
------------

**OnDeath**
**Died**

This event is sent to an actor's local script when that actor dies.

.. code-block:: Lua
eventHandlers = {
OnDeath = function()
Died = function()
print('Alas, ye hardly knew me!')
end
}
Expand Down

0 comments on commit efb819b

Please sign in to comment.