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
|
|
|
|
2023-12-29 04:24:30 +00:00
|
|
|
void NTImagimeterVisibility::OnQuickBuildComplete(Entity* self, Entity* target) {
|
2022-08-18 05:09:14 +00:00
|
|
|
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());
|
|
|
|
}
|