I am using kbTell in my mission because it allows me to use some audio files from the game (so I don't need add more to the mission).
I am using these radio messages when a player teamhits a friendly player.
The problem is the following script will display the "cease fire" message in the language of the target for both target and shooter (so if shooter is polish and the target is french then polish shooter will see "cease fire" message in french and will not understand what he's doing):
MYTARGET kbAddtopic ["SENTENCES", "sentences.bikb"];
MYTARGET kbTell
[
MYSHOOTER,
"SENTENCES",
["CEASE_FIRE_1", "CEASE_FIRE_2", "CEASE_FIRE_3", "CEASE_FIRE_4"] select floor random 4,
[
"MESSAGE",
{},
format ["%1! %2", name MYSHOOTER, localize "STR_A3_CEASE_FIRE"],
[]
],
if (group MYTARGET == group MYSHOOTER) then {"GROUP"} else {"SIDE"}
];
sentences.bikb file:
class Sentences
{
class CEASE_FIRE_1
{
text = "%MESSAGE";
speech[] = {"CeaseFire"};
class Arguments
{
class MESSAGE {type = "simple";};
};
};
class CEASE_FIRE_2
{
text = "%MESSAGE";
speech[] = {"HoldFire"};
class Arguments
{
class MESSAGE {type = "simple";};
};
};
class CEASE_FIRE_3
{
text = "%MESSAGE";
speech[] = {"DoNotFire"};
class Arguments
{
class MESSAGE {type = "simple";};
};
};
class CEASE_FIRE_4
{
text = "%MESSAGE";
speech[] = {"CheckYourFire"};
class Arguments
{
class MESSAGE {type = "simple";};
};
};
};
class Arguments{};
class Special {};
startWithVocal[] = {};
startWithConsonant[] = {};