Lua接口/客户端/SendChatMessage
来自天龙知识库
SendChatMessage
实现体未体现明确的外部效果 · 实现于 Game/Interface/GMGameInterface_Script.cpp
调用方式
SendChatMessage(string, string, number, number, number)
作为全局函数直接按名称调用。
现有界面脚本中没有检索到该函数的调用点。
参数
| 序号 | 类型 | 说明 |
|---|---|---|
| 1 | string
|
源码注释:消息字符串 |
| 2 | string
|
源码注释:目标名字字符串 |
| 3 | number
|
源码注释:频道id |
| 4 | number
|
源码注释:消息类型 |
| 5 | number
|
源码注释:团队id |
返回值
无返回值(实现体 return 0)。被赋给变量时得到 nil,与返回数字 0 不同。