honor the logic in the lua script

This commit is contained in:
Aaron Kimbre 2022-04-17 20:16:27 -05:00
parent a343ed9493
commit 235934714f

View File

@ -10,7 +10,11 @@ void WhFans::OnStartup(Entity* self) {
}
void WhFans::ToggleFX(Entity* self, bool hit) {
try {
std::string fanGroup = self->GetGroups()[0];
} catch(...) {
std::string fanGroup = ""
}
Game::logger->Log("WhFans", "Toggling FX for Fan Group(%s)\n", fanGroup.c_str());
std::vector<Entity*> fanVolumes = EntityManager::Instance()->GetEntitiesInGroup(fanGroup);