Repository navigation
SMX Chat API
🇬🇧 English · 🇩🇪 Deutsche Version
Source:
SkyMap-X-DEV→Scripts/Game/Helper/SMX_ChatAPI.c. Requires SkyMap-X as a dependency of your addon.
A small read-only API so other mods can read the SkyMap-X tablet chat: all messages of the current session, with sender and text.
Every message is an SMX_ChatData:
| Field | Content |
|---|---|
sender |
Chat ID of the sender tablet: T<tablet ID>, e.g. T123456789 (set by the server) |
senderName |
Name the sender used (player / device name) |
receiver |
Chat ID of the receiving tablet |
message |
Message text |
timestamp |
HH:MM:SS |
Chat ID: a conversation is exactly between two tablets. The ID is
T<tablet ID>. The tablet ID is derived by the server from the player's Bohemia account and survives restarts, renames and group changes (see Screen Mirror & Tablet ID §4). Older versions usedDevice ID [Info]; that text is now only the label in the contact list. (WIP branchtablet-spiegelung-2026-11.)
| Call | Where | Returns |
|---|---|---|
SMX_ChatAPI.GetSessionMessages() |
Client |
array<ref SMX_ChatData>: all messages of this session that this client sent or received (history loaded from files is not included). |
SMX_ChatAPI.GetOnMessage() |
Client |
ScriptInvoker, fires on every new message of this client. Handler: void Fn(SMX_ChatData data)
|
SMX_ChatAPI.GetOnServerMessage() |
Server / host |
ScriptInvoker, fires for all chat messages of all players. Handler: void Fn(SMX_ChatData data)
|
A client only knows conversations it takes part in. For truly all messages of a session use the server hook. It fires after rate limit and length trimming (500 chars) were applied. Calls return null while the managers do not exist yet.
// Server-side mod: log every chat message
SMX_ChatAPI.GetOnServerMessage().Insert(OnChat);
void OnChat(SMX_ChatData d)
{
Print(d.timestamp + " " + d.senderName + " -> " + d.receiver + ": " + d.message);
}SkyKing Mod Docs · EN (Page) / DE (Page-DE) · Keep both languages in sync with the source repos (SkyMap-X-DEV, SpeedUI, SIDC-Framework, Throw Back Grenade) and the companion tools (ATAKmaps, SIDC---C2---Command-Control).
🇬🇧 English
General
SkyMap-X (SMX)
- Overview & Usage
- Workflows (step by step)
- Camera functions (Fnc1/Fnc2, NV)
- Drones (WIP)
- SecondMap Bridge (map provider)
- Chat API (for mods)
- Screen Mirror & Tablet ID (WIP)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Companion tools
🇩🇪 Deutsch
Allgemein
SkyMap-X (SMX)
- Überblick & Bedienung
- Abläufe (Schritt für Schritt)
- Kamera-Funktionen (Fnc1/Fnc2, NV)
- Drohnen (in Arbeit)
- SecondMap-Bridge (Kartenanbieter)
- Chat-API (für Mods)
- Bildschirm-Spiegelung & Tablet-ID (in Arbeit)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Begleit-Tools