|
Colette Meiji
Registered User
Join date: 25 Mar 2005
Posts: 15,556
|
09-13-2008 12:10
Is there anyway I could get a script that would basally change from texture A to Texture B when I sat on the prim, then back to texture A when I got up?
It would solve a problem with a script I have that tries to make a prim transparent but keeps blinking.
Any help would be appreciated.
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
09-13-2008 12:12
yes there is, i wont do it for you but ill give you many tips when you sit on a prim use the event change
changed(integer b) { if(b & CHANGED_LINK) { (texture a) } else { (texture b) } }
http://wiki.secondlife.com/wiki/Changed
|
|
Colette Meiji
Registered User
Join date: 25 Mar 2005
Posts: 15,556
|
09-13-2008 12:21
k thank you - I will try.
I have no scripting experience at all. Or programing either.
Just the problem with a script i need to use acting up
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
09-13-2008 12:27
ok  give it a shot if you need help im me in sl or post what you have on forums and me or others will try and help you
|
|
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
|
09-13-2008 18:13
Hmmm... Slightly incorrect.
changed(integer change) { if (change & CHANGED_LINK) { key avatar = llAvatarOnSitTarget(); if (avatar != NULL_KEY) // Or: if (avatar == llGetOwner()) // to restrict to yourself { // texture A } else if (avatar == NULL_KEY) { // texture B } } }
|