Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving an Attacment

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
02-01-2006 22:47
Can you move a object attached to an avatar through a script. Not detach or drop, but a small change in position or rotation?

Thanks, Mod
Sol Columbia
Ding! Level up
Join date: 24 Sep 2005
Posts: 91
02-02-2006 10:17
Yep. Use llSetPos for position in a child prim and the position change will be relative to the primary prim. Use llSetLocalRot for rotations on child prims in the same manner.

-Sol Columbia
Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
More attachment movement issues
02-03-2006 07:38
I am totally baffled. If I rez a scripted object out of my inventory that I plan to attach, get the script running and then attach or wear without taking it back into my inventory, the scripted movenmet works. If I take it into my inventory and then attach or wear it, the script does not work, even if I reset the script manually. Is there a way around this? Am I missing something. Help!

Mod
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
weirdness with attachments
02-03-2006 19:24
Make sure you don't have the attachment resetting on rez.. For some reason the scripts don't like to work if you save or reset them while you're wearing it.. I think this is a new issue but can't remember.