forked from mirror/openmw-tes3mp
[Server] Add SendActorAuthority() script function
This commit is contained in:
parent
c2d6265ffd
commit
ba8341bfb5
2 changed files with 8 additions and 0 deletions
|
@ -277,6 +277,12 @@ void WorldFunctions::SendActorList() noexcept
|
||||||
mwmp::Networking::get().getWorldController()->GetPacket(ID_ACTOR_LIST)->Send(scriptEvent.guid);
|
mwmp::Networking::get().getWorldController()->GetPacket(ID_ACTOR_LIST)->Send(scriptEvent.guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WorldFunctions::SendActorAuthority() noexcept
|
||||||
|
{
|
||||||
|
mwmp::Networking::get().getWorldController()->GetPacket(ID_ACTOR_AUTHORITY)->setEvent(&scriptEvent);
|
||||||
|
mwmp::Networking::get().getWorldController()->GetPacket(ID_ACTOR_AUTHORITY)->Send(scriptEvent.guid);
|
||||||
|
}
|
||||||
|
|
||||||
void WorldFunctions::SendObjectDelete() noexcept
|
void WorldFunctions::SendObjectDelete() noexcept
|
||||||
{
|
{
|
||||||
mwmp::Networking::get().getWorldController()->GetPacket(ID_OBJECT_DELETE)->setEvent(&scriptEvent);
|
mwmp::Networking::get().getWorldController()->GetPacket(ID_OBJECT_DELETE)->setEvent(&scriptEvent);
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
{"AddContainerItem", WorldFunctions::AddContainerItem},\
|
{"AddContainerItem", WorldFunctions::AddContainerItem},\
|
||||||
\
|
\
|
||||||
{"SendActorList", WorldFunctions::SendActorList},\
|
{"SendActorList", WorldFunctions::SendActorList},\
|
||||||
|
{"SendActorAuthority", WorldFunctions::SendActorAuthority},\
|
||||||
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
||||||
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
||||||
{"SendObjectScale", WorldFunctions::SendObjectScale},\
|
{"SendObjectScale", WorldFunctions::SendObjectScale},\
|
||||||
|
@ -118,6 +119,7 @@ public:
|
||||||
static void AddContainerItem() noexcept;
|
static void AddContainerItem() noexcept;
|
||||||
|
|
||||||
static void SendActorList() noexcept;
|
static void SendActorList() noexcept;
|
||||||
|
static void SendActorAuthority() noexcept;
|
||||||
static void SendObjectDelete() noexcept;
|
static void SendObjectDelete() noexcept;
|
||||||
static void SendObjectPlace() noexcept;
|
static void SendObjectPlace() noexcept;
|
||||||
static void SendObjectScale() noexcept;
|
static void SendObjectScale() noexcept;
|
||||||
|
|
Loading…
Reference in a new issue