mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-02 12:41:38 +00:00
Rename to Died
This commit is contained in:
parent
ad68b7e18b
commit
efb819b9d2
2 changed files with 3 additions and 3 deletions
|
@ -348,7 +348,7 @@ namespace MWLua
|
||||||
{
|
{
|
||||||
if (actor.isEmpty())
|
if (actor.isEmpty())
|
||||||
return;
|
return;
|
||||||
mLuaEvents.addLocalEvent({ getId(actor), "OnDeath", {} });
|
mLuaEvents.addLocalEvent({ getId(actor), "Died", {} });
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force)
|
void LuaManager::useItem(const MWWorld::Ptr& object, const MWWorld::Ptr& actor, bool force)
|
||||||
|
|
|
@ -6,14 +6,14 @@ Built-in events
|
||||||
Actor events
|
Actor events
|
||||||
------------
|
------------
|
||||||
|
|
||||||
**OnDeath**
|
**Died**
|
||||||
|
|
||||||
This event is sent to an actor's local script when that actor dies.
|
This event is sent to an actor's local script when that actor dies.
|
||||||
|
|
||||||
.. code-block:: Lua
|
.. code-block:: Lua
|
||||||
|
|
||||||
eventHandlers = {
|
eventHandlers = {
|
||||||
OnDeath = function()
|
Died = function()
|
||||||
print('Alas, ye hardly knew me!')
|
print('Alas, ye hardly knew me!')
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue