- Joined
- Aug 18, 2009
- Messages
- 4,097
Is there any use for those game events?
Or are they only internally inherited to the more specific events like TriggerRegisterTimerExpireEvent? It does not seem like
The only thing that comes to mind is that you could compare the eventid you get from
JASS:
constant gameevent EVENT_GAME_VARIABLE_LIMIT=ConvertGameEvent(2)
constant gameevent EVENT_GAME_STATE_LIMIT=ConvertGameEvent(3)
constant gameevent EVENT_GAME_TIMER_EXPIRED=ConvertGameEvent(4)
constant gameevent EVENT_GAME_ENTER_REGION=ConvertGameEvent(5)
constant gameevent EVENT_GAME_LEAVE_REGION=ConvertGameEvent(6)
constant gameevent EVENT_GAME_TRACKABLE_HIT=ConvertGameEvent(7)
constant gameevent EVENT_GAME_TRACKABLE_TRACK=ConvertGameEvent(8)
Or are they only internally inherited to the more specific events like TriggerRegisterTimerExpireEvent? It does not seem like
TriggerRegisterGameEvent(trigger, EVENT_GAME_TIMER_EXPIRED)
would detect the expiration of any timer for example.The only thing that comes to mind is that you could compare the eventid you get from
GetTriggerEventId
in order to compare it to those constants. But registering events of different types on the same trigger makes hardly sense.