Resetting the velocity on death

This commit is contained in:
Zoe Roux
2021-06-20 19:19:35 +02:00
parent e2386e885b
commit 5293222f88
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ namespace BBM
entity.removeComponent<AnimatorComponent>();
if (entity.hasComponent<TimerComponent>())
return;
entity.getComponent<ControllableComponent>().disabled = true;
entity.getComponent<ControllableComponent>().disable();
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &ent, WAL::Wal &) {
if (!ent.hasComponent<SoundComponent>())
return;