DarkflameServer/dScripts/AgTurret.cpp
EmosewaMC a91309c5f8 Scripts A-B
Gonna be doing this in alphabetical order now.
2022-06-22 21:11:31 -07:00

18 lines
413 B
C++

#include "AgTurret.h"
#include "GameMessages.h"
void AgTurret::OnStartup(Entity* self) {
// TODO: do this legit way
self->AddTimer("killTurret", 20.0f);
}
void AgTurret::OnTimerDone(Entity* self, std::string timerName) {
if (timerName == "killTurret") {
self->ScheduleKillAfterUpdate();
}
}
void AgTurret::OnRebuildStart(Entity* self, Entity* user) {
GameMessages::SendLockNodeRotation(self, "base");
}