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:
parent
0b8d0224d1
commit
5bd2fdcf66
2 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue