Implement Timer handlers in triggers and ontimerdone trigger event (#1031)

* Works, but AOE is broken

* Address Feedback

* fix typo
This commit is contained in:
Aaron Kimbrell
2023-04-18 12:48:03 -05:00
committed by GitHub
parent da6ca82ae2
commit 2e284eb2ce
5 changed files with 58 additions and 93 deletions

View File

@@ -1232,6 +1232,7 @@ void Entity::Update(const float deltaTime) {
for (CppScripts::Script* script : CppScripts::GetEntityScripts(this)) {
script->OnTimerDone(this, timerName);
}
TriggerEvent(eTriggerEventType::TIMER_DONE, this);
} else {
timerPosition++;
}