1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 03:15:32 +00:00

[Server] Add OnObjectScale callback, and set scale for WorldObject

This commit is contained in:
David Cernat 2017-02-01 09:25:32 +02:00
parent 0b8d0224d1
commit 5bd2fdcf66
2 changed files with 5 additions and 0 deletions

View file

@ -489,6 +489,10 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
myPacket->Read(worldEvent);
myPacket->Send(worldEvent, true);
Script::Call<Script::CallbackIdentity("OnObjectScale")>(
player->getId(),
worldEvent->cell.getDescription().c_str());
break;
}

View file

@ -36,6 +36,7 @@ void WorldFunctions::AddWorldObject() noexcept
worldObject.count = tempWorldObject.count;
worldObject.goldValue = tempWorldObject.goldValue;
worldObject.pos = tempWorldObject.pos;
worldObject.scale = tempWorldObject.scale;
worldEvent->objectChanges.objects.push_back(worldObject);
}