Scripts / Need help with "horror combat music" in this script :)

Author
Message
Mipastu
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 16th Feb 2015
Location: Finland
Posted: 23rd Nov 2016 16:57


So i used this smallg's amazing script and just added sound that loops when the enemy character is chasing you,
(this script creates slenderman kind of enemy who appears and dissappears on triggers)
But as you see i used stopsound, but the sound keeps looping still... so i need help with this, how i make the looping suspense music to stop?

Thanks! ))
ps. i dont know if this is right place for this, but i didnt find better board
Intel Core i5 6600K @ 3.50GHz ¨ 16,0Gt dual channel RAM @ 1334MHz ¨¨ 2048MtNVIDIA GeForce GTX 1060 6GB ¨¨ 465GB Samsung SSD 750 EVO 500GB (SSD) ¨¨ Windows 10 Home 64-bit
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 24th Nov 2016 02:13
Moved to the script board to get the answers you need.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 24th Nov 2016 09:19
try changing LoopSound(e,1) to PlaySoundIfSilent(e,1)

Not tested it but it might work.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Nov 2016 14:37
try this
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Mipastu
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 16th Feb 2015
Location: Finland
Posted: 24th Nov 2016 15:02
^^^^ i tried to use that, the sound stops. but immidatly starts again, it wont stop the loop
Intel Core i5 6600K @ 3.50GHz ¨ 16,0Gt dual channel RAM @ 1334MHz ¨¨ 2048MtNVIDIA GeForce GTX 1060 6GB ¨¨ 465GB Samsung SSD 750 EVO 500GB (SSD) ¨¨ Windows 10 Home 64-bit
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Nov 2016 15:36 Edited at: 24th Nov 2016 15:39
try with this trigger zone
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Mipastu
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 16th Feb 2015
Location: Finland
Posted: 24th Nov 2016 15:43
Works like charm! thank you smallg so much!
Intel Core i5 6600K @ 3.50GHz ¨ 16,0Gt dual channel RAM @ 1334MHz ¨¨ 2048MtNVIDIA GeForce GTX 1060 6GB ¨¨ 465GB Samsung SSD 750 EVO 500GB (SSD) ¨¨ Windows 10 Home 64-bit

Login to post a reply

Server time is: 2024-04-30 19:07:56
Your offset time is: 2024-04-30 19:07:56