mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 03:30:18 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
14
dScripts/AllCrateChicken.cpp
Normal file
14
dScripts/AllCrateChicken.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "AllCrateChicken.h"
|
||||
#include "dCommonVars.h"
|
||||
#include "EntityManager.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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user