Hi,
also no one could help me on my last threads, i hope this time someone can answer me
I created a addAction in my mission.pbo, so everyone has a Point "Say Hello" in theire Scroll-Menu, when you activate this Option your Player says "Hello, i am friendly!", like he would speak in direct channel.
So, i added this to my init.sqf
addSoundOption.sqf
and finaly, sayfriendly.sqf does currently only
Works great, you have the Scroll-Wheel-Option and the Player says "Hello, i am friendly", and even starts the Lip-Sync, but no player nearby can hear anything, but he should normaly hear it in a radius of 40m, is player only a local-object on the client? Do i have to create a new vehicle like "HeliEmpty" on the position of the player that plays the sound once? Or does only say3d work in multiplayer?
also no one could help me on my last threads, i hope this time someone can answer me
I created a addAction in my mission.pbo, so everyone has a Point "Say Hello" in theire Scroll-Menu, when you activate this Option your Player says "Hello, i am friendly!", like he would speak in direct channel.
So, i added this to my init.sqf
Code:
if (!isDedicated) then {
[] execVM "fixes\addSoundOption.sqf";
}
addSoundOption.sqf
Code:
while {true} do
{
if (!isNull player) then
{
_isAction = player getVariable ["TAG_ActionAdded", false];
if (!_isAction) then
{
_actionid = player addAction ["<t color='#0096ff'>Say Friendly</t>", "fixes\sayfriendly.sqf", [], -1, false, true, "", ""];
player setVariable ["TAG_ActionAdded", true];
};
}
}
and finaly, sayfriendly.sqf does currently only
Code:
player say ["friendly", 40];
Works great, you have the Scroll-Wheel-Option and the Player says "Hello, i am friendly", and even starts the Lip-Sync, but no player nearby can hear anything, but he should normaly hear it in a radius of 40m, is player only a local-object on the client? Do i have to create a new vehicle like "HeliEmpty" on the position of the player that plays the sound once? Or does only say3d work in multiplayer?