EVENT_GAME_BUILD_SUBMENU
- comment
This event is fired when a build menu is opened (e.g. by human peasant).
Example (Lua):
trg_gameev = CreateTrigger() -- just print the object representing EventId TriggerAddAction(trg_gameev, function() print(GetTriggerEventId()) end) -- register for this event TriggerRegisterGameEvent(trg_gameev, EVENT_GAME_BUILD_SUBMENU)- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- Source code
constant gameevent EVENT_GAME_BUILD_SUBMENU = ConvertGameEvent(10)