forked from teamnwah/openmw-tes3coop
[Server] Add script function for sending world object scale
This commit is contained in:
parent
705589e3e3
commit
87dce73b90
2 changed files with 7 additions and 0 deletions
|
@ -172,6 +172,11 @@ void WorldFunctions::SendObjectPlace() noexcept
|
|||
mwmp::Networking::get().getWorldController()->GetPacket(ID_OBJECT_PLACE)->Send(worldEvent, worldEvent->guid);
|
||||
}
|
||||
|
||||
void WorldFunctions::SendObjectScale() noexcept
|
||||
{
|
||||
mwmp::Networking::get().getWorldController()->GetPacket(ID_OBJECT_SCALE)->Send(worldEvent, worldEvent->guid);
|
||||
}
|
||||
|
||||
void WorldFunctions::SetHour(unsigned short pid, double hour) noexcept
|
||||
{
|
||||
Player *player;
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
\
|
||||
{"SendObjectDelete", WorldFunctions::SendObjectDelete},\
|
||||
{"SendObjectPlace", WorldFunctions::SendObjectPlace},\
|
||||
{"SendObjectScale", WorldFunctions::SendObjectScale},\
|
||||
\
|
||||
{"SetHour", WorldFunctions::SetHour},\
|
||||
{"SetMonth", WorldFunctions::SetMonth},\
|
||||
|
@ -69,6 +70,7 @@ public:
|
|||
|
||||
static void SendObjectDelete() noexcept;
|
||||
static void SendObjectPlace() noexcept;
|
||||
static void SendObjectScale() noexcept;
|
||||
|
||||
static void SetHour(unsigned short pid, double hour) noexcept;
|
||||
static void SetMonth(unsigned short pid, int month) noexcept;
|
||||
|
|
Loading…
Reference in a new issue