| 89 | } |
| 90 | |
| 91 | bool HandleEvent(Event& event, Activator& activator) |
| 92 | { |
| 93 | if (!event.Enabled || event.CallCounter == 0 || event.Function.empty()) |
| 94 | return false; |
| 95 | |
| 96 | g_GameScript->ExecuteFunction(event.Function, activator, event.Data); |
| 97 | if (event.CallCounter != NO_VALUE) |
| 98 | event.CallCounter--; |
| 99 | |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | bool HandleEvent(const std::string& name, EventType eventType, Activator activator) |
| 104 | { |