Scripts / gasmask loopsound

Author
Message
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 20th Apr 2016 11:25
HI ...I'm making a gasmask script and want to have a breathe lopposound when mask in on ..

which strings must i to add to my script to have a specific loopsound when mask is on and no loopsound when mask is off??

many thanks

leon
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 20th Apr 2016 11:28 Edited at: 20th Apr 2016 11:33
Add an entity, make it dynamic, Always On, Spawn at start = no

Assign in slot 0 or 1 a STEREO wav or ogg audio file and thats it.

e below is the entity number of the hidden entity to generate sound. If you use mono wav it will fade out if you move away from it , stereo will not.

LoopSound(e,0) or (e,1)

StopSound(e,0) or (e,1) should stop the sound, im not sure if thats what you need?
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 20th Apr 2016 11:45
thanks tarkus for your hint but waht i need is a fuction that play a looposund in my own script without use of external entities..

i would to know if i can add a function in a script that play a specified sound and if i can set the sound path in the script ..
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 20th Apr 2016 12:45
i dont think that is possble ? smallg is the scripting expert, he might know.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 20th Apr 2016 14:23
something like that..
https://forum.game-guru.com/thread/213129#msg2528017
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 20th Apr 2016 14:41
thats pretty cool, maybe i might use that script too, looks good.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 24th Apr 2016 22:25
Quote: "which strings must i to add to my script to have a specific loopsound when mask is on and no loopsound when mask is off??"


You can't set the sound path yet, anyway it would be nice.
You only can work with tose 2 slots via fpe and/or via properties panel.

So,
if gasmask is on then
LoopSound(e,0)
Else
StopSound(e,0)
end

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 25th Apr 2016 12:08
ok iìll try ..thank you
PC Specs:

Q9550@3,8GHZ - 8GB RAM - SVGA R9 280 3GB GDDR5 - HDD WD 1500TB
PM

Login to post a reply

Server time is: 2024-12-22 17:54:23
Your offset time is: 2024-12-22 17:54:23