DarkflameServer/dScripts/ai/WILD/AllCrateChicken.cpp

13 lines
287 B
C++
Raw Permalink Normal View History

#include "AllCrateChicken.h"
#include "Entity.h"
void AllCrateChicken::OnStartup(Entity* self) {
self->AddTimer("KillRooster", 4.2f);
}
void AllCrateChicken::OnTimerDone(Entity* self, std::string timerName) {
if (timerName == "KillRooster") {
self->ScheduleKillAfterUpdate();
}
}