Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Phantom in child prim

Altern8 McMillan
Registered User
Join date: 27 Mar 2007
Posts: 36
09-11-2007 16:32
Hi there,
I'm experimenting with vehicles. So I've built a car which turns on the lights at nighttime. My light are just some simple rings, set to yellow, fullbright, phantom and alpha 0.0 at daytime or alpha 0.5 at nighttime.

My problem: the whole car turns phantom.

The lights are a child prim of the vehicle.

I've used llSetLinkPrimitiveParams (LINK_THIS, [...]) in the child prim -> car phantom

I've used llSetLinkPrimitiveParams (llGetLinkNumber(), [...]) to be sure in the child prim -> car phantom

Is it me again after 12 hours of LindenScript lol or is it just not possible?

Thx and greetz

A8
Anti Antonelli
Deranged Toymaker
Join date: 25 Apr 2006
Posts: 1,091
09-11-2007 17:38
Sorry, phantom is a property of the entire object - you can't have phantom and non-phantom prims linked together. Change one prim to phantom and all prims linked to it change too, regardless of the method (script function or otherwise).
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
09-11-2007 17:55
This is an awful solution, just including it for the hell of it. You can make the lights flexible, set the softness to 0, gravity 0, drag 10, wind 0, tension 10, force <0, 0, 0>... then, select both the car and the lights (unlinked) and set them physical, then link... so you'll end up with a physical car with flexible lights that move as little as I know how to make them move, and those flexible lights will *almost* be phantom... there's a physical bit in the center I think. And the car might suddently fly off-world sometimes. And this might break (unbreak?) one day.

(sorry!)

Oh... you might make the lights wearable instead...
_____________________
Altern8 McMillan
Registered User
Join date: 27 Mar 2007
Posts: 36
09-11-2007 18:20
thx for ur answers :)

ur approach sounds interesting, Day, where did u get it from?

it seems my car has no lights then meanwhile. I think wearible is no solution in my case. I wonder if I should have read it somewhere that one child makes the whole object phantom. Maybe I will have to read again in the linked sets sction of the wiki.

again, thx a lot

greetz

a8