Files
DarkflameServer/dScripts/02_server/Map/General/EventCounterUtil.h
Aaron Kimbrell a83eb3c1ba feat(scripts): L_EVENT_COUNTER_UTIL
A counter worked by the events its config names, firing its max and min events at their groups (three Fire Temple
objects use it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:47:54 -06:00

11 lines
502 B
C++

#pragma once
#include "CppScripts.h"
// L_EVENT_COUNTER_UTIL.lua: a counter worked by events its config names (increment / decrement), from min (0) to max
// (1). Reaching max fires maxHit_event at maxHit_group; back at min it fires minHit_event at minHit_group.
class EventCounterUtil : public CppScripts::Script {
public:
void OnStartup(Entity* self) override;
void OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) override;
};