Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Start another script on sit in linked set

Travis Overland
Registered User
Join date: 26 Mar 2009
Posts: 1
07-04-2009 09:01
I have 2 prim set. One has the animation when sat on, the other is a rezz script that will rezz objects on the timer I have set. I have to touch the rezzer prim to start the rezzing. I'm try to figure out how to start the rezz timer when a person sits with a linkmessage and stops when they get up. I can't for the life of me figure it out. Can anyone help me with this please?


Woot never mind I figured it out lol
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
07-04-2009 12:28
woot woot said the owl.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
07-04-2009 15:16
for anyone else struggling with the same problem...

CODE

key gKeyPrv;

default{
changed( integer vBitChg ){
/*//-- only send a trigger if the sitter changes --//*/
if (gKeyPrv != llAvatarOnSitTarget()){
/*//-- update Previous Sitter --//*/
gKeyPrv = llAvatarOnSitTarget();
integer vIntBgn;
/*//-- true if someone just sat down, false otherwise --//*/
if (gKeyPrv){
vIntBgn = TRUE;
}
/*//-- recieving script filters for "Fire it up?" and uses the true or false to trigger --//*/
llMessageLinked( LINK_SET, vIntBgn, "Fire it up?", "" );
}
}
}
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -