Jump to content
Sign in to follow this  
UK_SPAWN

Playing sounds and displaying radio msg in Multiplayer.

Recommended Posts

Hi again all,

im onto the next step of my scripting adventure and heres what im stuck with,

I have sounds that i have added, with radio messages too, but only i can hear them, i have tried all variations of Say Say3d, PlaySound, etc etc, but no matter what my friend can never hear the sound, nor see the message but i do on my screen/speakers.

I descoverd that i must "run this on all clients". but i dont understand how to do that, can anyone change this so people in multiplayer can hear it/see the txt, i can then adopt it to my other Scripts.

i dont mind how, but as closer to the script below the better. if i need to add stuff to mission thats fine.

Thanks.

this code is in a script.sqf and restores the squads health (but not there state of injury/recovery/fatigue whatever, i cant find anything)

-------------

Cooldown2 = 1;

T1 setdamage 0;

T2 setdamage 0;

T3 setdamage 0;

T4 setdamage 0;

T5 setdamage 0;

HINT "Squad Health Restored (100%) \n(300s Cooldown)";

Player groupChat "HEALTH RESTORED'";

PlaySound "SOUND";

Sleep 300;

Cooldown2 = 0;

Share this post


Link to post
Share on other sites

Thanks a lot buddy, testing now.

---------- Post added at 19:35 ---------- Previous post was at 19:28 ----------

can i use rSideChat to use the radio instead of a hint?

---------- Post added at 19:44 ---------- Previous post was at 19:35 ----------

rHint works, rSideChat dont :(. i want to keep the hint to the person that uses the action, but the radio msg to say "iv just done this/about to do this"

---------- Post added at 20:07 ---------- Previous post was at 19:44 ----------

[LEADERNAME,nil,rSideChat,"Squad Health Restored"] call RE; - That works fine to a degree :)

can i replace the unit name with something like "THIS" so any unit that performs the action will have them say it instead of one unit announcing everyone's actions

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  

×