mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-06 07:18:42 +00:00
Organize dScripts (#814)
* Organize dScripts whitespace Remove parent scope Remove parent scope from initial setter Remove debug Remove helper programs * Fix NtImagimeterVisibility script Co-authored-by: aronwk-aaron <aronwk.aaron@gmail.com>
This commit is contained in:
12
dScripts/ai/WILD/AllCrateChicken.cpp
Normal file
12
dScripts/ai/WILD/AllCrateChicken.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user