diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index afd40011b..206c54c64 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -125,6 +125,7 @@ public: {"OnPlayerSpellbookChange", Function()}, {"OnPlayerJournalChange", Function()}, {"OnActorList", Function()}, + {"OnActorCellChange", Function()}, {"OnActorTest", Function()}, {"OnObjectPlace", Function()}, {"OnObjectDelete", Function()}, diff --git a/apps/openmw-mp/processors/actor/ProcessorActorCellChange.hpp b/apps/openmw-mp/processors/actor/ProcessorActorCellChange.hpp index 435e0e048..e3f02128c 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorCellChange.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorCellChange.hpp @@ -17,6 +17,8 @@ namespace mwmp { // Send this to everyone packet.Send(true); + + Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; }