DarkflameServer/dScripts/AllCrateChicken.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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();
}
}