chat - Vermintide-Mod-Framework/Vermintide-Mod-Framework GitHub Wiki
Chat
This module provides functions to send chat notifications to other players.
Recipients do not need VMF to display the messages.
If you want to…
- Show a message to the local player, use
VMFMod:echo. - Do general purpose logging, see Logging.
- Send a chat message as the local player:
-- Vermintide 1 Managers.chat:send_chat_message(1, "Hello everyone!") -- Vermintide 2 Managers.chat:send_chat_message(1, 1, "Hello everyone!")
Functions
VMFMod:chat_broadcast
Send a system chat message to all players in a lobby.
Parameters
message[string] Chat message.
VMFMod:chat_whisper
Send a system chat message to a specific player.
Only the host can use this method, and they can only whisper to other players.
Parameters
peer_id[string] Opaque peer id. Cannot be the host's id.message[string] Chat message.