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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help (again)
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#1
Script Help (again)

I have alittle function here but the sound im telling it to play isnt playing and the particle effects are not working either i think the string is wrong but im not sure what is needed.


void ActivateQuake(string &in item)
{

SetEntityActive("stone_small01_1", true);
SetEntityActive("stone_small01_2", true);
SetEntityActive("stone_small01_3", true);
SetEntityActive("stone_med01_brown_1", false);
PlayMusic("baseap.ogg", false, 0.7, 0.1, 10, false);
PlaySoundAtEntity("","general_rock_rumble", "Player", 0, true);
CreateParticleSystemAtEntity("", "ps_debris_tunnel", "dust_effect_1", false);
CreateParticleSystemAtEntity("", "ps_debris_tunnel", "dust_effect_2", false);
CreateParticleSystemAtEntity("", "ps_debris_tunnel", "dust_effect_3", false);
AddTimer("T1", 6, "Fallin");

}

Edit: ive managed to get the particles working but still no sound

[Image: qg_logo.png]
(This post was last modified: 04-13-2012, 10:43 PM by Nomad923.)
04-13-2012, 10:20 PM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#2
RE: Script Help (again)

For the sound remember this : "asSoundFile - the sound to use + extension .snt"

So you're missing .snt extention. Also verify if that's the correct filename and that it has a SNT file(required for 3D audio details).

For the particles remember this : "asPSFile - the particle system to use + extension .ps"

Also verify the filename.

So of the filenames you used are correct(IT IS a file name, not the name of something in the script) it should look like:

PHP Code: (Select All)
void ActivateQuake(string &in item)
{

    
SetEntityActive("stone_small01_1"true);
    
SetEntityActive("stone_small01_2"true);
    
SetEntityActive("stone_small01_3"true);
    
SetEntityActive("stone_med01_brown_1"false);
    
PlayMusic("baseap.ogg"false0.70.110false);
    
PlaySoundAtEntity("","general_rock_rumble.snt""Player"0true);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_1"false);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_2"false);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_3"false);
    
AddTimer("T1"6"Fallin");



Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 04-13-2012, 10:32 PM by nemesis567.)
04-13-2012, 10:30 PM
Find
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#3
RE: Script Help (again)

(04-13-2012, 10:30 PM)nemesis567 Wrote: For the sound remember this : "asSoundFile - the sound to use + extension .snt"

So you're missing .snt extention. Also verify if that's the correct filename and that it has a SNT file(required for 3D audio details).

For the particles remember this : "asPSFile - the particle system to use + extension .ps"

Also verify the filename.

So of the filenames you used are correct(IT IS a file name, not the name of something in the script) it should look like:

PHP Code: (Select All)
void ActivateQuake(string &in item)
{

    
SetEntityActive("stone_small01_1"true);
    
SetEntityActive("stone_small01_2"true);
    
SetEntityActive("stone_small01_3"true);
    
SetEntityActive("stone_med01_brown_1"false);
    
PlayMusic("baseap.ogg"false0.70.110false);
    
PlaySoundAtEntity("","general_rock_rumble.snt""Player"0true);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_1"false);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_2"false);
    
CreateParticleSystemAtEntity("""ps_debris_tunnel.ps""dust_effect_3"false);
    
AddTimer("T1"6"Fallin");


Ok after doing what you said its still not working

Edit: Ok i changed the sound to general_rock_rumble_no3d.snt instead and its working now.

[Image: qg_logo.png]
(This post was last modified: 04-13-2012, 10:43 PM by Nomad923.)
04-13-2012, 10:39 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#4
RE: Script Help (again)

You don't need the .snt in all cases, I don't always use it and the base game scripts don't always use it. Let me check the script out, maybe I'll see an error or something.

Nevermind, it seems you got it to work...just ignore this.

(This post was last modified: 04-13-2012, 10:51 PM by Putmalk.)
04-13-2012, 10:47 PM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#5
RE: Script Help (again)

The point was what I said: "Also verify if that's the correct filename and that it has a SNT file". The other was only a measure to take if you were sure of the file name.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
04-13-2012, 11:00 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#6
RE: Script Help (again)

(04-13-2012, 11:00 PM)nemesis567 Wrote: The point was what I said: "Also verify if that's the correct filename and that it has a SNT file". The other was only a measure to take if you were sure of the file name.
Yeah, that's why I said ignore what I said. The forum wasn't letting me delete it.


(This post was last modified: 04-13-2012, 11:22 PM by Putmalk.)
04-13-2012, 11:22 PM
Find




Users browsing this thread: 2 Guest(s)