Arma Reforger Script API
|
This component takes care of sending chat messages. More...
Public Member Functions | |
proto external IEntity | GetOwner () |
Returns the parent entity of this component. | |
proto external void | SetChannel (int channelId, bool enabled) |
Enables/disables chat-channel. | |
proto external bool | GetChannelState (int channelId) |
proto external void | SendMessage (string msgStr, int channelId) |
Send message to specified channel. | |
proto external void | SendPrivateMessage (string msgStr, int receiverId) |
Send message to specific player. | |
Public Member Functions inherited from GameComponent | |
bool | OnTicksOnRemoteProxy () |
Protected Member Functions | |
void | OnNewMessage (string msg, int channelId, int senderId) |
Event triggered on every message delivered to BaseChatComponent. | |
void | OnNewPrivateMessage (string msg, int senderId, int receiverId) |
Event triggered on every private message delivered to BaseChatComponent. | |
void | ShowMessage (string msg) |
This component takes care of sending chat messages.
proto external bool BaseChatComponent.GetChannelState | ( | int | channelId | ) |
channelId | Defined by BaseChatEntity. Indexed from 0. |
proto external IEntity BaseChatComponent.GetOwner | ( | ) |
Returns the parent entity of this component.
|
protected |
Event triggered on every message delivered to BaseChatComponent.
msg | Payload |
channelId | Defined by BaseChatEntity. Indexed from 0. |
senderId | Sender PlayerID compatible with lobby |
Implemented in SCR_ChatComponent.
|
protected |
Event triggered on every private message delivered to BaseChatComponent.
msg | Payload |
senderId | Sender PlayerID |
receiverId | Receiver PlayerID |
Implemented in SCR_ChatComponent.
proto external void BaseChatComponent.SendMessage | ( | string | msgStr, |
int | channelId | ||
) |
Send message to specified channel.
msgStr | Message to be sent |
channelId | Defined by BaseChatEntity. Indexed from 0. |
proto external void BaseChatComponent.SendPrivateMessage | ( | string | msgStr, |
int | receiverId | ||
) |
Send message to specific player.
msgStr | Message to be sent |
receiverId | Receiver PlayerID |
proto external void BaseChatComponent.SetChannel | ( | int | channelId, |
bool | enabled | ||
) |
Enables/disables chat-channel.
System channel (channelId = 0) is enabled by default
channelId | Defined by BaseChatEntity. Indexed from 0. |
enabled | Enable/disable receiving of messages in channel |
|
protected |
Implemented in SCR_ChatComponent.