Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with sounds!
Cgturner Offline
Junior Member

Posts: 28
Threads: 7
Joined: Sep 2010
Reputation: 0
#20
RE: Help with sounds!

Well, this is both sound and particle system related. I want to make sure this is the correct way to make a timed sequence for sound/particle effects.

void Collidearea_scratch(string &in asParent, string &in asChild, int alState)
{
    AddTimer("hit_wood01.snt", 0.5f, "TimerSoundSequence");
    AddTimer("hit_wood01.snt", 1.0f, "TimerSoundSequence");
    AddTimer("hit_wood01.snt", 1.4f, "TimerSoundSequence");
    AddTimer("ps_impact_dust_low", 0.5f, "TimerSoundSequence");
    AddTimer("ps_impact_dust_high", 1.0f, "TimerSoundSequence");
    AddTimer("ps_impact_dust_high", 1.4f, "TimerSoundSequence");
}

void TimerSoundSequence(string &in asTimer)
{
    PlaySoundAtEntity("hitwood01", asTimer, "castle_arched01_1", 0, false);
    CreateParticleSystemAtEntity("psgal", "ps_impact_dust_low", "castle_arched01_1", false);
    CreateParticleSystemAtEntity("psgal", "ps_impact_dust_high", "dust_3", false);
    CreateParticleSystemAtEntity("psgal", "ps_impact_dust_low", "dust_1", false);
}

The sound plays correctly, from the correct entity, but the particle effects happen every time the sound starts, and I only want each particle effect to happen once. Thanks for any help!
09-18-2010, 06:58 AM
Find


Messages In This Thread
Help with sounds! - by Cgturner - 09-16-2010, 07:42 PM
RE: Help with sounds! - by MulleDK19 - 09-16-2010, 07:54 PM
RE: Help with sounds! - by Armored Cow - 09-16-2010, 08:01 PM
RE: Help with sounds! - by Cgturner - 09-16-2010, 08:18 PM
RE: Help with sounds! - by MulleDK19 - 09-16-2010, 08:19 PM
RE: Help with sounds! - by Cgturner - 09-17-2010, 01:00 AM
RE: Help with sounds! - by MulleDK19 - 09-17-2010, 01:07 AM
RE: Help with sounds! - by Cgturner - 09-17-2010, 01:18 AM
RE: Help with sounds! - by MulleDK19 - 09-17-2010, 01:31 AM
RE: Help with sounds! - by Cgturner - 09-17-2010, 01:45 AM
RE: Help with sounds! - by Armored Cow - 09-17-2010, 02:11 AM
RE: Help with sounds! - by Cgturner - 09-17-2010, 03:21 AM
RE: Help with sounds! - by MulleDK19 - 09-17-2010, 03:25 AM
RE: Help with sounds! - by Cgturner - 09-17-2010, 03:51 AM
RE: Help with sounds! - by MulleDK19 - 09-17-2010, 04:06 PM
RE: Help with sounds! - by Cgturner - 09-17-2010, 03:56 PM
RE: Help with sounds! - by jens - 09-17-2010, 04:17 PM
RE: Help with sounds! - by Armored Cow - 09-17-2010, 04:04 PM
RE: Help with sounds! - by Cgturner - 09-17-2010, 04:25 PM
RE: Help with sounds! - by Cgturner - 09-18-2010, 06:58 AM
RE: Help with sounds! - by gosseyn - 09-18-2010, 07:19 AM
RE: Help with sounds! - by Cgturner - 09-18-2010, 07:51 AM



Users browsing this thread: 3 Guest(s)