Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

No phy/no sit

LaZy Hulka
Registered User
Join date: 11 Apr 2006
Posts: 32
07-27-2006 00:19
Here is a no phyical script. This make it so people cannot sit on a prim or a object. This has a remove timer. You can Change the timer
CODE
 llSleep(0.5); 


CODE


string reciever;
default {
state_entry() {
llSitTarget(<0.4, 0, 0.6>, ZERO_ROTATION);
}

changed(integer change) { // something changed
if (change & CHANGED_LINK) { // and it was a link change
// llSleep(0.5); // llUnSit works better with this delay
if (llAvatarOnSitTarget() != NULL_KEY) { // somebody is sitting on me
reciever = llAvatarOnSitTarget();
llSay(0, "Get off!"); // say in chat when person is remove from prim
llUnSit(llAvatarOnSitTarget()); // unsit him
}
}
}
}
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
07-27-2006 07:38
/54/aa/124747/1.html
_____________________
i've got nothing. ;)