mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 17:58:20 +00:00
honor the logic in the lua script
This commit is contained in:
parent
a343ed9493
commit
235934714f
@ -10,7 +10,11 @@ void WhFans::OnStartup(Entity* self) {
|
||||
}
|
||||
|
||||
void WhFans::ToggleFX(Entity* self, bool hit) {
|
||||
std::string fanGroup = self->GetGroups()[0];
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user