forked from mirror/openmw-tes3mp
[Server] Add OnActorCellChange script callback
This commit is contained in:
parent
6a21ec1fdc
commit
9a89284bca
2 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,7 @@ public:
|
|||
{"OnPlayerSpellbookChange", Function<void, unsigned short>()},
|
||||
{"OnPlayerJournalChange", Function<void, unsigned short>()},
|
||||
{"OnActorList", Function<void, unsigned short, const char*>()},
|
||||
{"OnActorCellChange", Function<void, unsigned short, const char*>()},
|
||||
{"OnActorTest", Function<void, unsigned short, const char*>()},
|
||||
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
||||
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
||||
|
|
|
@ -17,6 +17,8 @@ namespace mwmp
|
|||
{
|
||||
// Send this to everyone
|
||||
packet.Send(true);
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnActorCellChange")>(player.getId(), actorList.cell.getDescription().c_str());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue