Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
ScriptedChatEntity.c
Go to the documentation of this file.
1// Current state of the chat:
2// - There is no reliable way how to know that messagebox is visible
3// This is a problem with browsing history
4
8
9class ScriptedChatEntity : BaseChatEntity
10{
11 //------------------------------------------------------------------------------------------------
12 void ScriptedChatEntity(IEntitySource src, IEntity parent)
13 {
14 SetEventMask(EntityEvent.INIT | EntityEvent.FRAME);
15 }
16
17
18 //------------------------------------------------------------------------------------------------
19 int GetChannelId(BaseChatChannel channel)
20 {
21 int count = GetChannelsCount();
22
23 for (int i = 0; i < count; i++)
24 {
25 if (GetChannel(i) == channel)
26 return i;
27 }
28
29 return -1;
30 }
31
32};
proto external BaseChatChannel GetChannel(int channelId)
BaseChatEntityClass GenericEntityClass GetChannelsCount()
EntityEvent
Various entity events.
Definition EntityEvent.c:14