Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Attached and linked child prim rotation

Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-09-2006 10:13
To tell you the truth, this is not the 1.9.1 specific problem, but I seem to be unable to make it in time to report. I made sure this happend in 1.9.1 preview, too.

1. Put the script into a child prim which is rezzed on ground.
2. Say, "ON" and "OFF", it works correctly.
3. Wear the object and say, "ON" and "OFF", it works, too.
4. Detach the object and then wear again.
5. Say, "ON", but you should make sure that it doesn't work.
6. Detach it and wear again. It should be rezzed while rotating.
7. And you can make sure that it works correctly.

So, if you stop to rotate it while wearing it and put it into your inventory, it doesn't work when you wear it again. But say command is affected and it will be acted when you re-attach it.

CODE
default
{
state_entry()
{
llListen(0,"",llGetOwner(),"");
}
changed(integer change)
{
if(change & CHANGED_OWNER)
{
llResetScript();
}
}
listen(integer channel, string name, key id, string message)
{
if ( message == "ON")
{
llTargetOmega(<2,0,0> * llGetLocalRot(),PI,1.0);
}
else if ( message == "OFF")
{
llTargetOmega(<0,0,0> * llGetLocalRot(),PI,1.0);
}
}
}
_____________________
:) Seagel Neville :)
Hello Toonie
Registered User
Join date: 25 Jul 2005
Posts: 212
05-09-2006 10:40
Out of interest, does it also break if you walk between sims wearing it?
Rifkin Habsburg
Registered User
Join date: 17 Nov 2005
Posts: 113
05-09-2006 11:52
This has been a known problem with llTargetOmega() for some time. The (strange but true) workaround is to call llSetText() in your child prim.

Here's a thread explaining it: /54/73/79278/1.html
_____________________
Procyon Games: makers of Can't Stop, En Garde, Take it Easy, Danger Zone and Frootcake.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-09-2006 15:24
Thanks for the link. But it isn't listed on Second Life Known Issues Update April 22, 2006. It won't be solved without Linden's recognition. :(

[EDIT] * llTargetOmega does not work consistently on child prims
hmm... What I'm speaking is the trigger that llTargetOmega doesn't work.
_____________________
:) Seagel Neville :)
Hello Toonie
Registered User
Join date: 25 Jul 2005
Posts: 212
05-09-2006 16:12
Thanks Rifkin, I dug out my old waggytail I scrapped because of the SL bug and the workaround is good... yay.
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
05-09-2006 16:16
I never knew about this workaround, either. Will have to try it out and see how well it works. Thanks for the link, Rifkin!
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
05-09-2006 18:28
Aha I've just realized that it is the same between copying object that Davan mentioned and re-attaching object that I mentioned. It seems to work. Thank you, Rifkin. And I should say thanks to Davan, too. :)
_____________________
:) Seagel Neville :)
Johnny Mann
Registered User
Join date: 1 Oct 2005
Posts: 202
05-10-2006 19:25
The workaround I have been using is this

Basically you call for a llResetScript();

For Example

If rotation = none then ResetScript.

This works for me everytime and most llTarget scripts should allow this entry w/o much modification.

:)