Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Temp on rez with changed link

Virrginia Tombola
Equestrienne
Join date: 10 Nov 2006
Posts: 938
11-20-2008 07:35
Hullo all, this is another "what am I doing obviously wrong here" moments. I made a non-physical vehicle which I want to rez, then tour about my sim, then die at the end of the tour. I've got it to do all that, but then I came up with the bright idea that it would save prims if I made it temp on rez when the passenger sits on it.

The code seemed obvious:

CODE


changed(integer change)
{
if(change&CHANGED_LINK)
{
llSetPrimitiveParams([PRIM_TEMP_ON_REZ, TRUE]);
}
}


But when I check the object tab in edit after sitting on it, it doesn't show the vehicle as temporary.

What am I missing here?
_____________________


Horses, Carriages, Modern and Historical Riding apparel. Ride a demo horse, play whist, or just loiter. I'm fair used to loiterers.

http://slurl.com/secondlife/Caledon%20Eyre/48%20/183/23/
Wouter Hobble
Registered User
Join date: 25 Mar 2008
Posts: 21
11-20-2008 07:44
Hmm, have you tried putting in an llOwnerSay to debug? Should work starting from version 1.9 the wiki says, however nothing better than testing it.

Also, I would put the script in a one prim object to make sure nothing weird is going on there...
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
11-20-2008 07:53
I don't see what's missing either. I use the same technic in my warp teleporters... but honestly, I've never verified if it actually works since I kill them when the AV stands up.

Maybe you should wait longer... Or be sure to deselect and re-select your NPV before to verify... Or add more params in your llPrimitiveParams() instruction... Or rez some new fresh prims because the ones in your NPV are too old/rotten/corrupted/whatever.

I really don't see what's missing.
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
11-20-2008 07:55
Temp on rez may not be a valid option to set while an agent is part of a linkset.
_____________________
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
11-20-2008 08:00
You don't save prims on objects that are sat on. When you sit on a object it don't count against the parcel, but does count against the sim limit (just like temp on rez). So that step is not necessary.
Virrginia Tombola
Equestrienne
Join date: 10 Nov 2006
Posts: 938
11-20-2008 08:15
Thanks all! I can't get inworld right now, but I'll check it again. I'm thinking that perhaps Tyken is right, or I just made a simple error last night that will stand out when I look at it again.

But...thanks, Destiny! I didn't realize that--I'd always heard that parcels need "free prims" if a vehicle is going to pass through. So, it really doesn't matter, aside from on the parcel I'm rezzing it on (unless the passenger leaves mid-tour)?
_____________________


Horses, Carriages, Modern and Historical Riding apparel. Ride a demo horse, play whist, or just loiter. I'm fair used to loiterers.

http://slurl.com/secondlife/Caledon%20Eyre/48%20/183/23/
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
11-20-2008 08:49
A different option would be to make the vehicle rez-on-demand and just always have it be temp.. Downside is that there's no vehicle waiting for people when they want to do the tour, upside is that you don't have to worry about scripting it to change to temp.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- 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
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
11-20-2008 08:51
just have it temp, I have been using temp karts for my amusement park for about a year now, and so far its great. they will stay inwworld until people stand up, that is really all you need.
Virrginia Tombola
Equestrienne
Join date: 10 Nov 2006
Posts: 938
11-21-2008 06:50
Atom and Meade, I think you two have the right of it. Still, one gets annoyed when code doesn't work like you think it ought!
_____________________


Horses, Carriages, Modern and Historical Riding apparel. Ride a demo horse, play whist, or just loiter. I'm fair used to loiterers.

http://slurl.com/secondlife/Caledon%20Eyre/48%20/183/23/
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
11-21-2008 07:41
From: Virrginia Tombola
Atom and Meade, I think you two have the right of it. Still, one gets annoyed when code doesn't work like you think it ought!

The constant name: "PRIM_TEMP_ON_REZ" says it all. The object will be temp when rezzed.
"llSetPrimitiveParams([PRIM_TEMP_ON_REZ, TRUE]);" will work in an "on_rez()" event but not in other events that take place after the object is rezzed ( like a "changed" event).
That is my experience, correct me if I am wrong:)
_____________________
From Studio Dora
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
11-21-2008 08:31
It doesn't really apply in your particular case but another benefit of having things be set to temp is that you don't have to worry about getting ARed for littering if they wander onto your anti-social neighbors no-script land. Also makes cleanup when wearing portable rezzers (wands and such) a lot easier..