|
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
|
05-25-2008 14:23
So I'm scripting an anim for when an AV sits in the prim and when I get the changed(CHANGED_LINK) event, llAvatarOnSitTarget() returns NULL_KEY whether I am sitting down or standing up. I even put in a delay to give the server time to straighten out its boxer shorts first...
What's going on? have the rules changed?
-C
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
05-25-2008 15:02
just a silly question... you didn't set a <0,0,0> sit target, did you?
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
05-25-2008 15:35
default { state_entry() { llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); } changed(integer change) { if (change & CHANGED_LINK) { key agent = llAvatarOnSitTarget(); if (agent) { //request permission } else { // what to do when geting up } } } }
try that it is untested
|
|
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
|
05-25-2008 22:15
From: Winter Ventura just a silly question... you didn't set a <0,0,0> sit target, did you? Nope, I was just using the object default. Which used to work back in the SL stone age  I wouldn;t be surprised if this is exactly the problem. thank you much  - C
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
05-25-2008 23:23
When we moved into the bronze age they changed it so you had to have registered a sit target first.
The issue is if you have two prims, one with a sit target, and one without. A user sits on the object will be placed on the sit target, is it sane for scripts in both prims to report a user on a sit target? What if there are three prims and two of them have sit targets?
Just easier and less confusing to have the function get the avatar on the prims sit target.
_____________________
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
|