Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Limiting Interaction with Objects?

Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
09-25-2004 15:52
I have a question for you scripters, and since I am not a scripter, I'll have to ask in non-technical language.

Is it possible to block people from manipulating or otherwise interfering with a physics-enabled object except in specific ways?

Here's an example:

I'm thinking of setting up a football/soccer game. The ball can be pushed around when avatars run into it. However, I would not want avatars to be able to use their mouse to move the ball, nor would I want them to be able to stop the ball by right-clicking on it. Doing either of the last two things would ruin the game, I think.

I suspect that there's no solution to this because of how SL works. Is there a partial solution or a workaround that anyone can suggest? Please bear in mind my lack of scripting skills-- I'm talking theoreticals here, not asking for code samples :)

Also, I have a related question: If more than one person is mousing a physics-enabled object around, what happens? Is there a "tug of war?" Does the first person to click on it get precedence?
_____________________
Zero Grace, agent of Tony Walsh
Read Tony's Second Life weblog entries at Clickable Culture
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-25-2004 16:09
llSetStatus(STATUS_BLOCK_GRAB, TRUE);

that should stop people from being able to grab the ball.

as to the tug-of-war question i don't know.
_____________________
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
Zero Grace
Homunculus
Join date: 13 Apr 2004
Posts: 237
09-25-2004 16:24
Yeah that totally worked, thanks! Also it seems you can still kick the ball around when people are right-clicking it, so that's just peachy as well.
_____________________
Zero Grace, agent of Tony Walsh
Read Tony's Second Life weblog entries at Clickable Culture
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
09-26-2004 12:24
and pushguns are still working :/
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-26-2004 12:31
hard to stop them except by making the land no outside scripts.
_____________________
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