Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I could use alittle help

Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-02-2009 13:40
Im trying to make a pumpkin seat that "farts" or "squeeks" when you sit on it, ive looked all over and i cant find a script to allow this to happen can anyone help me please?

thanks in advance -Kaz
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-02-2009 13:51
You need to write a basic sit script and add a llPlaySound function to it, something like this....

CODE

default {
state_entry() {
llSitTarget(<0, 0, 0.1>, ZERO_ROTATION);
}

changed(integer change) {
if (change & CHANGED_LINK) {
key av = llAvatarOnSitTarget();
if(av != NULL_KEY){
llPlaySound("YourObnoxiousSound",1);
}
else {
llUnSit(av);
}
}
}
}


Embellish as necessary and find your own sound file.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-02-2009 14:11
where abouts would i put the sound line if i already have an animation sit script
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
10-02-2009 14:11
From: Rolig Loon
else {
llUnSit(av);
}

Hm...
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
10-02-2009 14:13
From: Kazaki Kohime
where abouts would i put the sound line if i already have an animation sit script


put the sound line right after the start_animation function
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-02-2009 14:17
hmm im getting an error when i do that, id post the script but i keep getting a 404 error when i try to
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
10-02-2009 14:17
From: Sindy Tsure
Hm...
You're being subtle again.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-02-2009 14:42
From: Sindy Tsure
Hm...

You don't like llUnSit(av)? I figure if he can make a rude noise, he can also rudely toss the av off the cushion. :p
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
10-02-2009 14:46
From: Kazaki Kohime
hmm im getting an error when i do that, id post the script but i keep getting a 404 error when i try to


You could try using http://ssg.pastebin.com/ and paste the url here.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
10-02-2009 14:53
Look at the code. You're calling llUnSit(NULL_KEY).
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-02-2009 23:12
From: Kazaki Kohime
hmm im getting an error when i do that, id post the script but i keep getting a 404 error when i try to

if your script has any vectors in it, you'll need to add some spaces before and after the "<" and ">" signs, IE:

< 0.0,0.0,0.0 >
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Pete Littlebird
Registered User
Join date: 30 Sep 2009
Posts: 44
10-03-2009 03:00
The sounds "Fart" and "Razzberry" from the "Library/Sounds/Gesture sounds" folder in your inventory may be suitable.
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-03-2009 06:39
i just tried that and that did work either -_- this forum hates me
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-03-2009 06:40
From: Ruthven Willenov
if your script has any vectors in it, you'll need to add some spaces before and after the "<" and ">" signs, IE:

< 0.0,0.0,0.0 >


tried that and it still wont let me post it this forum hates me
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-03-2009 07:27
From: Ruthven Willenov
if your script has any vectors in it, you'll need to add some spaces before and after the "<" and ">" signs, IE:

< 0.0,0.0,0.0 >

Dunno why, but I've been able to post vectors without the extra white space for the past two or three weeks. See? <0.0,1.5,This_is_a_vector> I figured the forum's bracket gremlin had gone on vacation.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-03-2009 07:44
well that must not be my problem.. what else causes that issue?
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-03-2009 08:19
Try going to User CP (top left of the page), choose "Edit Options" and scroll down to Miscellaneous Options at the very bottom of the page. Make sure "Basic Editor--A Simple Text Box" is chosen.

Otherwise, see /327/5d/330018/1.html for some further suggestions.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
10-03-2009 08:23
From: Rolig Loon
Dunno why, but I've been able to post vectors without the extra white space for the past two or three weeks. See? <0.0,1.5,This_is_a_vector> I figured the forum's bracket gremlin had gone on vacation.
So long as the first character after the < is not alphabetic.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-03-2009 08:28
LOL... This is like baseball stats on the radio.... "Most hits in a 5-4 game by a left-handed batter in the fourth inning on a Tuesday since 1947....." Gotta love these forums.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-03-2009 08:40
any one willing to just help me within SL? this has gotten irritating
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-03-2009 08:46
Innula made a good suggestion. If you've tried that and still can't post, I don't know what to suggest. It sounds like your problem is a very simple one, though, just a matter of placing a single llPlaySound statement in your script. Can you at least post the few lines around where you tried placing it.... not the whole script?
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Kazaki Kohime
Registered User
Join date: 11 May 2007
Posts: 7
10-03-2009 08:48
i tried everything, and it wont even let me post a part of a code hence my asking for help within sl
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
10-03-2009 09:44
Post it to pastebin and put a link here.

http://ssg.pastebin.com/
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore