• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

General GameEvents

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
Is there any use for those game events?

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.
 
Status
Not open for further replies.
Top