mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 09:23:52 +00:00
[Server] Add SendActorPosition() script function
This commit is contained in:
parent
e5e888ac21
commit
4c35c328a9
2 changed files with 8 additions and 0 deletions
|
@ -236,6 +236,12 @@ void ActorFunctions::SendActorAuthority() noexcept
|
||||||
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY)->Send(writeActorList.guid);
|
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_AUTHORITY)->Send(writeActorList.guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ActorFunctions::SendActorPosition() noexcept
|
||||||
|
{
|
||||||
|
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_POSITION)->setActorList(&writeActorList);
|
||||||
|
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_POSITION)->Send(writeActorList.guid);
|
||||||
|
}
|
||||||
|
|
||||||
void ActorFunctions::SendActorStatsDynamic() noexcept
|
void ActorFunctions::SendActorStatsDynamic() noexcept
|
||||||
{
|
{
|
||||||
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_STATS_DYNAMIC)->setActorList(&writeActorList);
|
mwmp::Networking::get().getActorPacketController()->GetPacket(ID_ACTOR_STATS_DYNAMIC)->setActorList(&writeActorList);
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
\
|
\
|
||||||
{"SendActorList", ActorFunctions::SendActorList},\
|
{"SendActorList", ActorFunctions::SendActorList},\
|
||||||
{"SendActorAuthority", ActorFunctions::SendActorAuthority},\
|
{"SendActorAuthority", ActorFunctions::SendActorAuthority},\
|
||||||
|
{"SendActorPosition", ActorFunctions::SendActorPosition},\
|
||||||
{"SendActorStatsDynamic", ActorFunctions::SendActorStatsDynamic},\
|
{"SendActorStatsDynamic", ActorFunctions::SendActorStatsDynamic},\
|
||||||
{"SendActorCellChange", ActorFunctions::SendActorCellChange}
|
{"SendActorCellChange", ActorFunctions::SendActorCellChange}
|
||||||
|
|
||||||
|
@ -111,6 +112,7 @@ public:
|
||||||
|
|
||||||
static void SendActorList() noexcept;
|
static void SendActorList() noexcept;
|
||||||
static void SendActorAuthority() noexcept;
|
static void SendActorAuthority() noexcept;
|
||||||
|
static void SendActorPosition() noexcept;
|
||||||
static void SendActorStatsDynamic() noexcept;
|
static void SendActorStatsDynamic() noexcept;
|
||||||
static void SendActorCellChange() noexcept;
|
static void SendActorCellChange() noexcept;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue