Voice Commands (tell your player what to say)

blur

Valued Member!
I was wondering if it would be possible to make your player say things with a scroll wheel option when near other players (so they can hear it) depending on your humanity what you can say, EXAPMPLE: if you are near a player, you can use the scroll wheel to say "Im friendly!" or Don't Shoot!" "Help!" this would be faster than typing it, and would also be useful if you did not have a mic.
I think it could be done along these lines with add action

if (_action == "friendly") then
{
_nul = [objNull, player, rSAY, "ShoutFriendly"] call RE;


if (_action == "help") then
{
_nul = [objNull, player, rSAY, "ShoutHelp"] call RE;


if (_action == "dontshoot") then
{
_nul = [objNull, player, rSAY, "ShoutDontShoot"] call RE;



and for the sounds


class CfgSounds
{
sounds[] =
{
ShoutDontShoot,ShoutHelp,ShoutFriendly
};
class dontshoot
{
name="ShoutDontShoot";
sound[]={sounds\ShoutDontShoot.ogg,0.4,1};
titles[] = {};
};
class help
{
name="ShoutHelp";
sound[]={\sounds\ShoutHelp.ogg,0.5,1};
titles[] = {};
};
class friendly
{
name="ShoutFriendly";
sound[]={\sounds\ShoutFriendly.ogg,0.7,1};
titles[] = {};
};

i am still looking into what i can find, if you guys have any input, please share!
 
Really cool idea doing this based on humanity; you could really go into depth with it.
I'd suggest making a Voice sub menu in the scroller rather than all of them at once showing.
 
Back
Top