DarkflameServer/dScripts/NtDarkitectRevealServer.cpp

15 lines
370 B
C++
Raw Normal View History

#include "NtDarkitectRevealServer.h"
#include "Darkitect.h"
#include "MissionComponent.h"
2022-07-28 13:39:57 +00:00
void NtDarkitectRevealServer::OnUse(Entity* self, Entity* user) {
Darkitect Baron;
Baron.Reveal(self, user);
auto* missionComponent = user->GetComponent<MissionComponent>();
2022-07-28 13:39:57 +00:00
if (missionComponent != nullptr) {
missionComponent->ForceProgressTaskType(1344, 1, 14293);
}
}