Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

coordinates of multi prim objects recognized by scripts

Olympia Rebus
Muse of Chaos
Join date: 22 Feb 2004
Posts: 1,831
07-18-2005 08:54
When I build something, it seems the last prim I attach becomes the gold parent prim and the object inheirets its xyz coordinates.

However, when I add any movement script to the object (for example, Look At ), I find that it sometimes uses different xyz coordinates than that of the parent prim. To be blunt, the little xyz arrows point one way when the object is selected, but the script alligns itself with the xyz arrows of a child piece of the object Why is this?

I've noticed this happens a lot when I drag the script onto an object (as oppossed to typing it in). I'm wondering if by dragging it on that I'm "installing" the script into a chid prim by mistake?
_____________________
Wheel Fizz
Registered User
Join date: 26 May 2005
Posts: 36
07-18-2005 10:11
Im not totally sure without testing,but i think if Edit Linked parts is checked scripts can be dropped into child prims of linked objects.If not then it should go into the Parent or Root Prim where ever you drop it on the object,but I dont like Edit Linked parts lol...:) which is why Im not sure.hope it helps ...

//Edit: Just been testing today and it works fine if you check "edit linked parts" ,select the prim,and drop script into its contents folder not the actual prim.Occasionally there was a bug and it would drop to root if I dragged the script across my object on the way from my inventory to the objects folder ...weird eh.This was solved by avoiding the object while dragging :)