Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Alarm sound with light flash?

Author
Message
Blahguy
14
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 20th Dec 2010 21:58
So I was creating a level where killing an entity, and that caused a red light begin flashing, which I successfully scripted to flash on and off every 500 units, but I had trouble finding a way to have an audio file play like a fire alarm, but light markers dont have a sound property, and I couldnt find any actions to run to play an audio file

Any help is greatly appreciated!!
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 20th Dec 2010 23:01 Edited at: 21st Dec 2010 00:19
Quote: "...light markers dont have a sound property..."


...no, but a triggerzone can be set up to play a sound:

http://forum.thegamecreators.com/?m=forum_view&t=139824&b=23

You can use the method contained in the link above, or even tweak the existing
script that you created for the light, if you feel creative, and you'll have your
desired effect in no time.

Blahguy
14
Years of Service
User Offline
Joined: 12th Dec 2010
Location: The Void
Posted: 21st Dec 2010 01:31
I fixed it! I simple used loopsound=audiobank\atmos\alarmhum.wav. Before I was using / not \, i dont know if there's a difference, but I also was forgetting the "atmos" part.

Login to post a reply

Server time is: 2025-06-04 20:42:59
Your offset time is: 2025-06-04 20:42:59