2022-08-18 05:09:14 +00:00
|
|
|
#include "NtImagimeterVisibility.h"
|
|
|
|
#include "GameMessages.h"
|
|
|
|
#include "Entity.h"
|
|
|
|
#include "Character.h"
|
2023-05-02 22:39:21 +00:00
|
|
|
#include "ePlayerFlag.h"
|
2022-08-18 05:09:14 +00:00
|
|
|
|
|
|
|
void NTImagimeterVisibility::OnRebuildComplete(Entity* self, Entity* target) {
|
|
|
|
auto* character = target->GetCharacter();
|
2023-05-02 22:39:21 +00:00
|
|
|
if (character) character->SetPlayerFlag(ePlayerFlag::NT_PLINTH_REBUILD, true);
|
2022-08-18 05:09:14 +00:00
|
|
|
|
|
|
|
GameMessages::SendNotifyClientObject(self->GetObjectID(), u"PlinthBuilt", 0, 0, LWOOBJID_EMPTY, "", target->GetSystemAddress());
|
|
|
|
}
|