Jump to content

Sign in to follow this  
Erwin23p

Help wth unit speaking

Recommended Posts

Hi everybody, I'm doing a mission and I need a briefing, so I put an officer named "O1", a bunch of soldiers, and a squad leader(player) with the name of "elca", and with a trigger between the soldiers and elcaarma3_2014_03_31_01_42_19_75.jpg

in the trigger act I have "[THIS] exec "DirectMessages.sqf"" for the unit to speak, so in the sqf I have that:

O1 directsay "mes1";
Sleep 4;

Elca directsay "mes2";
Sleep 4;

Description.ext:

class CfgRadio
{
 sounds[] = {mes1,mes2};

 class mes1
 {
   name = "mes1";
   sound[] = {"rs\Good_morning.ogg", db+0, 1.0};
   title = "Good morning soldiers, today we're doing this litte test for make sure this work.";
 };

 class mes2
 {
   name = "mes2";
   sound[] = {"rs\For_what.ogg", db+0, 1.0};
   title = "And for what we are here?";
 };
};

and when my soldier actives the trigger they say both things at the same time (instead of saying it one and then the other). I made the same thing but in side radio, and in this other mission with the side radio working, my "directmessages.sqf" was like that:

Hawk1 sideRadio "mes1";
Sleep 4;

CROSSROAD sideRadio "mes2";
Sleep 4;

Plz could someone help me to make an unit talk in direct side?

Share this post


Link to post
Share on other sites

Save yourself the trouble and use the commandchat channel for simulating direct conversations.

Having to define every sentence in the description.ext would really only make sense if you're using voice overs with lipsync.

I can't see why your sleep command could be ignored, no idea on that.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×