Events triggered aliases¶
What is it?¶
KTX has the possibility to trigger aliases call on the client side when specific in-game events occur if the client supports it.
This page provides the list of events that will trigger aliases calls and the respective aliases names that can be configured in the client configuration to execute actions based on the event type.
Predefined events¶
| Event | Alias | Triggered for |
|---|---|---|
| Connecting to a server running in FFA mode | on_connect_ffa | players only |
| Connecting to a server running in CTF mode | on_connect_ctf | players only |
| Connecting to a server running in any other mode | on_connect | players only |
| Connecting to a server running in FFA mode | on_observe_ffa | spectators only |
| Connecting to a server running in CTF mode | on_observe_ctf | spectators only |
| Connecting to a server running in any other mode | on_observe | spectators only |
| Joining a FFA game | on_enter_ffa | players only |
| Joining a CTF game | on_enter_ctf | players only |
| Joining any other game | on_enter | players only |
| Joining a FFA game | on_spec_enter_ffa | spectators only |
| Joining a CTF game | on_spec_enter_ctf | spectators only |
| Joining any other game | on_spec_enter | spectators only |
| Match starting | on_matchstart | players only |
| Match starting | on_spec_matchstart | spectators only |
| Match ending normally | on_matchend | players only |
| Match ending normally | on_spec_matchend | spectators only |
| Match ending forcibly | on_matchbreak | players only |
| Match ending forcibly | on_spec_matchbreak | spectators only |
| Getting admin status | on_admin | players and spectators |
| Loosing admin status | on_unadmin | players and spectators |