mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-06 09:09:38 -06:00
Changed out Timer for CallBackTimer
This commit is contained in:
@@ -8,12 +8,8 @@ void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
||||
if (skillComponent == nullptr) return;
|
||||
|
||||
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
|
||||
|
||||
self->AddTimer("DestroyAfter10Seconds", 10.0f);
|
||||
}
|
||||
|
||||
void AgSurvivalBuffStation::OnTimerDone(Entity* self, std::string timerName) {
|
||||
if (timerName == "DestroyAfter10Seconds") {
|
||||
self->AddCallbackTimer(10.0f, [self]() {
|
||||
self->Smash();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user