Would it be possible to add a Starfall function, like this one?
LifeSupport:playSound("insert sound path here", other sound variables)
Basically, it would play a sound that would be heard in the entire life support environment. The sound volume is the same throughout the whole ship, and if someone leaves the ship, they stop hearing the sound. This would let people greatly optimize their chips depending on what they do.
Currently LS settings are defined via the console because it's easier i guess than networking them to everyone from the LS core's variables and if they do get added to the LS Core then you'll likely be able to change them via input anyway.
Let me rephrase. I'm suggesting something like a self destruct alarm, or an Enterprise red alert sound, that I can start or stop at any time and I dont have to specify each individual player. Kind of like the ambient ship sound, but controlled by Starfall.
(05-10-2016, 01:01 AM)Codyworlds Wrote: Let me rephrase. I'm suggesting something like a self destruct alarm, or an Enterprise red alert sound, that I can start or stop at any time and I dont have to specify each individual player. Kind of like the ambient ship sound, but controlled by Starfall.
Oh and other players hear it too unless they choose to opt out (optional).
local Volume = 1
local Pitch = 100
-- Set the environment sound for the ship core's environment (anywhere inside the ship basically, does not need an active LS core).
ShipCoreetEnvironmentSound( "path/to/sound.wav", Volume, Pitch )
-- Stop the environment sound.
ShipCoretopEnvironmentSound()
To enable/disable hearing for yourself: ship_core_playenvsound 1/0
09-10-2016, 06:13 PM, (This post was last modified: 09-10-2016, 06:51 PM by Salira.)