Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discussion: 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
Original Thread
07-27-2006 07:38
/15/cb/124689/1.html
_____________________
i've got nothing. ;)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
07-27-2006 12:44
CODE

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
key av = llAvatarOnSitTarget();
if (av) { // somebody is sitting on me
llSay(0, "Get off!"); // say in chat when person is remove from prim
llUnSit(av); // unsit him
}
}
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
07-27-2006 12:56
Copied almost verbatim from http://secondlife.com/badgeo/wakka.php?wakka=changed .
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
07-27-2006 13:34
hmm good point, think i'll update that example
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey