OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dammage on 04 Nov 2005, 08:31:13

Title: check chat function
Post by: dammage on 04 Nov 2005, 08:31:13
may i know if there is a function to check that a sidechat/direct speaking is executed ? like it will return something when a sidechat/direct speaking is execute
Title: Re:check chat function
Post by: macguba on 04 Nov 2005, 15:06:33
Welcome to the forum!
Title: Re:check chat function
Post by: THobson on 04 Nov 2005, 18:27:32
Indeed welcome.  I am afraid I don't fully understand the question.  Are you talking about the voice communications between players during multi-player or the command sidechat in single player?

In single player:

unitname sidechat "This what I want to say"

will result in:
This what I want to say
appearing in the bottom left of the screen

I somehow think this does not answer your question.
Title: Re:check chat function
Post by: Terox on 05 Nov 2005, 10:58:03
i think he is after a variable that he can check to see if anyone has written anything in side/group/vehicle chat etc

AFAIK, this aint possible
Title: Re:check chat function
Post by: Tyger on 06 Nov 2005, 07:19:07
I will second that. ;) :P
Title: Re:check chat function
Post by: Platoon Patton on 06 Nov 2005, 11:52:40
Maybe...well I havent done it...but think of this...

If U send the text through a dialog,

lbAdd [idc, text]    ....._index = lbAdd [101, "global,group,side or vehiclechat text"]

and then check the color with

lbColor [idc, _index]

Depending the result U can then decide what chat was used.

The standard colors of global-group-side-vehicle chat can be found in the config I guess..

Maybe U can use a dialog who is already defined in Resource.bin...

Donno,will do some testing.