Jump to content

How to make sound global


vieliza

Recommended Posts

I making sounds for characters, but zombies don’t hear character sounds for some reason , works through getSoundManager():PlaySound, tried through getSoundManager():PlayWorldSound, but zombies still do not hear.

		if player:isFemale()
		then
			local femalesounds = "FemaleScream"..tostring(ZombRand(5));
			local femalesoundsplay = getSoundManager():PlaySound(femalesounds,false,0);
			-- getSoundManager():PlayAsMusic(femalesounds,femalesoundsplay,false,0);
		else
			local malesounds = "MaleScream"..tostring(ZombRand(5));
			local malesoundsplay = getSoundManager():PlayWorldSound(malesounds, isoGridSquareInstance, 0.5, 10.0, 1.0, 3, true););
			-- getSoundManager():PlayWorldSound(malesounds,malesoundsplay,false,0);
		end

How can i fix this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...