Jump to content
Sign in to follow this  
shinkicker

playSound on MP Mission start / player Spawn

Recommended Posts

I would like a ogg file to play when a player first spawns into a multiplayer mission.

I have my CfgSounds set up ok, but I am not sure of the best way to have the sound only play when the player arrives in game (not during init / mission loading).

I have tried messing around with sleep commands and onPlayerConnected, but not having any luck? Has anyone done this before? Like a mission briefing in audio?

Share this post


Link to post
Share on other sites
Hmm, does that cover the initial spawn too?

(will try it now and report back).

Yes, you have to set a flag for it

respawnOnStart = 1;

also

if (isNull (_this select 1)) then {

//1st timer

}

Share this post


Link to post
Share on other sites

Trying to figure this out myself also...i know nothing about scripting. I would be extremely greatfull to anyone that could add my ogg file to my current mission as intro music.

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  

×