mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
[Server] Add OnActorCellChange script callback
This commit is contained in:
parent
6a21ec1fdc
commit
9a89284bca
@ -125,6 +125,7 @@ public:
|
|||||||
{"OnPlayerSpellbookChange", Function<void, unsigned short>()},
|
{"OnPlayerSpellbookChange", Function<void, unsigned short>()},
|
||||||
{"OnPlayerJournalChange", Function<void, unsigned short>()},
|
{"OnPlayerJournalChange", Function<void, unsigned short>()},
|
||||||
{"OnActorList", Function<void, unsigned short, const char*>()},
|
{"OnActorList", Function<void, unsigned short, const char*>()},
|
||||||
|
{"OnActorCellChange", Function<void, unsigned short, const char*>()},
|
||||||
{"OnActorTest", Function<void, unsigned short, const char*>()},
|
{"OnActorTest", Function<void, unsigned short, const char*>()},
|
||||||
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
|
||||||
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
|
||||||
|
@ -17,6 +17,8 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
// Send this to everyone
|
// Send this to everyone
|
||||||
packet.Send(true);
|
packet.Send(true);
|
||||||
|
|
||||||
|
Script::Call<Script::CallbackIdentity("OnActorCellChange")>(player.getId(), actorList.cell.getDescription().c_str());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user