UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Ambient sounds

broken avatar :(
Created 10 years ago
by Naminator999
0 Members and 1 Guest are viewing this topic.
1,955 views
broken avatar :(
×
broken avatar :(
Location: auAustralia
Date Registered: 8 January 2014
Last active: 6 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
×
Naminator999's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
Hey guys,

I hope this makes sense so bear with me.

I have a zombie door that is set up to look like a force field. What I want it to do is while it is blocking I want an ambient sound of the force field to loop and once the trigger is activated I want the looping sound to cease playing and a shutdown sound to play.
Is that possible in any way?

Also is there any way to make the door just disappear when the trigger is activated rather than move to a location it can't be seen.

Hope that makes sense. Thanks.
Last Edit: March 04, 2014, 05:13:48 am by Naminator999
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Also is there any way to make the door just disappear when the trigger is activated rather than move to a location it can't be seen.

You could put all the parts into an array and call delete(); on them.
broken avatar :(
×
broken avatar :(
Location: auAustralia
Date Registered: 8 January 2014
Last active: 6 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Naminator999's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
You could put all the parts into an array and call delete(); on them.

How do I do that? Sorry I'm fairly new to this.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I apologize if this script doesn't work, i'm a bit tired and i'm not the best at scripting.

Code Snippet
Plaintext
trig_setup()
{
trig = getEnt("window_trigs", "targetname"); // the trigs

if(isdefined(trig) )
{
continue;
}

if(isdefined(trig.zombie_cost) )
{
zombie_cost = trig.zombie_cost; // option for defining a zombie_cost inside Radiant
}
else
{
zombie_cost = 1000;
}

trig sethintstring(&"Press F to Buy zappers[cost:+zombie_cost]");
trig setCursorHint( "HINT_NOICON" );

players = get_players();

trig waittill("trigger", players);

players maps\_zombiemode_score::minus_to_player_score( zombie_cost );

level thread remove_window();
}

remove_window()
{
parts = getEntarray("window_parts", "targetname"); // the parts of the window

if(isdefined(parts) )
{
continue; // make sure the parts actually exist
}

for(i = 0 ; i < parts.size; i++) //puts all the parts into an array
{
parts[i] delete(); //deletes the array
}
}
broken avatar :(
×
broken avatar :(
Location: auAustralia
Date Registered: 8 January 2014
Last active: 6 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Naminator999's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
I apologize if this script doesn't work, i'm a bit tired and i'm not the best at scripting.

Code Snippet
Plaintext
trig_setup()
{
trig = getEnt("window_trigs", "targetname"); // the trigs

if(isdefined(trig) )
{
continue;
}

if(isdefined(trig.zombie_cost) )
{
zombie_cost = trig.zombie_cost; // option for defining a zombie_cost inside Radiant
}
else
{
zombie_cost = 1000;
}

trig sethintstring(&"Press F to Buy zappers[cost:+zombie_cost]");
trig setCursorHint( "HINT_NOICON" );

players = get_players();

trig waittill("trigger", players);

players maps\_zombiemode_score::minus_to_player_score( zombie_cost );

level thread remove_window();
}

remove_window()
{
parts = getEntarray("window_parts", "targetname"); // the parts of the window

if(isdefined(parts) )
{
continue; // make sure the parts actually exist
}

for(i = 0 ; i < parts.size; i++) //puts all the parts into an array
{
parts[i] delete(); //deletes the array
}
}
I'm not sure how to implement this code.

 
Loading ...