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 / random explosions in a trigger zone with sound (heared even if not in the zone)

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 2nd Dec 2008 19:09
hi all
Is it possible to do random explosions in a trigger zone with sound (heared even if not in the zone), I know a little about scripting but still having a problem with it being random and displaying the explosion decal..
TY..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Dec 2008 22:04
Hmmmm, does it HAVE to be in a triggerzone? Can't you just script an explosion decal to randomly run it's animation and play a sound?


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 3rd Dec 2008 05:56
well that's good too but how to define where the decal appears?
excuse me maybe it's a noob question but i'm totally lost :S
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Dec 2008 09:39
I see... you're wanting the explosions to appear in random locations as well as at random times?

Hmmmm.....

You'll need to set up a bunch of decal entities (for the "random locations"), script them to play the decal ONCE (and play a sound) when activated... now script a "controller" entity to activate 1 of the random decals at a random time interval. This entity should be always active, too, so either set that property on the entity or use a triggerzone or light for it.


Good luck!


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2024-11-24 16:35:04
Your offset time is: 2024-11-24 16:35:04