OnNamedEvent (GUI item event)

Called when a certain special event happens elsewhere in the game code. The list of named events vary depending on the scope you’re running the GUI script from (ie, HUD, scoreboard, etc), and new events can be created by mod authors, so it’s mainly a way of the game to fire up commands inside a GUI.

For existing Doom 3 GUIs, check the GUIs folder page for a list of some available named events.

Example(s)

onNamedEvent newWeapon {
    ...
}