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

Help with perk jingles scirpt

broken avatar :(
Created 12 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
2,592 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hello, i was working on this scirpt and dose not work in game and i am not sure why so if anyone could help would help me out a lot :D this is what the scirpt looks like...

Code Snippet
Plaintext
jingles()
{
who_sound = getEnt("who_sound", "targetname");
tomb_sound = getEnt("tomb_sound", "targetname");
flag_wait( "electricity_on" );

while(1)
{
wait 3;
who_sound playsound ("whowho_jingle");
wait 7;
tomb_sound playsound ("tombstone_jingle");
wait 50;
}
}

i called it at  FUNCTION CALLS - PRE _Load and this is what that looks like...

Code Snippet
Plaintext
	/*--------------------
FUNCTION CALLS - PRE _Load
----------------------*/
level thread DLC3_threadCalls();
thread jingles();
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
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
Code Snippet
Plaintext
jingles()
{
who_sound = getEnt("who_sound", "targetname");
tomb_sound = getEnt("tomb_sound", "targetname");
flag_wait( "electricity_on" );

while(1)
{
wait 3;
who_sound playsound ("whowho_jingle", who_sound.origin);
wait 7;
tomb_sound playsound ("tombstone_jingle", tomb_sound.origin);
wait 50;
}
}

specifying the origin may help(I don't know for sure).

Personally I wouldn't go through the trouble of creating a custom function since Treyarch already has a system that plays the jingle that you could add it too.


broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Code Snippet
Plaintext
jingles()
{
who_sound = getEnt("who_sound", "targetname");
tomb_sound = getEnt("tomb_sound", "targetname");
flag_wait( "electricity_on" );

while(1)
{
wait 3;
who_sound playsound ("whowho_jingle", who_sound.origin);
wait 7;
tomb_sound playsound ("tombstone_jingle", tomb_sound.origin);
wait 50;
}
}

specifying the origin may help(I don't know for sure).

Personally I wouldn't go through the trouble of creating a custom function since Treyarch already has a system that plays the jingle that you could add it too.

Thats what i was thinking but your did not work :(
Marked as best answer by Deleted User 7 months ago
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
The second PlaySound() argument isn't to specify origin. It's to specify a string that will be notified once the sound has completed.

As Daedra said implement it into the existing script. Will look more proper and be easier to implement.
Last Edit: January 30, 2014, 01:21:36 pm by SajeOne
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
The second PlaySound() argument isn't to specify origin. It's to specify a string that will be notified once the sound has completed.

As Daedra said implement it into the existing script. Will look more proper and be easier to implement.

Ok thanks :D

 
Loading ...