1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 00:39:58 +00:00

Rename to Died

This commit is contained in:
Evil Eye 2023-12-04 17:50:18 +01:00
parent ad68b7e18b
commit efb819b9d2
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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
}