Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New sit events: sit_start(), sit_end()

Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-05-2005 08:32
Events:
sit_start(integer total_number)
sit_end(integer total_number)

Function:
llPassSits(integer pass);

these would work like the touch events

llDetectedGrab - return TRUE if they are on a sit target or FALSE if not on a sit target (because a grab would be meaningless otherwise)
llDetectedLinkNumber - return the link the agent is sitting on
llDetectedGroup - work the same
llDetectedKey - work the same
llDetectedName - work the same
llDetectedPos - work the same
llDetectedRot - work the same
llDetectedType - work the same
llDetectedVel - work the same
_____________________
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
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
04-05-2005 08:40
While added functionality for sit targets would be nice, I guess I really don't mind if(changed & CHANGED_LINK) { if(agent) enough to make this a high priority over other stuff just yet. :)
_____________________
---
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
04-05-2005 12:24
From: Jeffrey Gomez
While added functionality for sit targets would be nice, I guess I really don't mind if(changed & CHANGED_LINK) { if(agent) enough to make this a high priority over other stuff just yet. :)


Unfortunately, the link-changed event is triggered for _every_ prim in the link set! It can be difficult, nigh impossible for the root prim to actively determine which prim the person sat on. You have to do some tricky coding to make each sit target prim actually figure out whether it was the one sat on or stood up from.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
04-05-2005 12:46
I guess it all depends on what you're trying to accomplish with such a suggestion. If you want a script for what cannot be done yet, then this isn't necessary yet. However, on making it far more efficient and user-friendly... yes. :D
_____________________
---