Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Vehicle script in an attachment

Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
04-04-2008 04:29
Is it possible to add vehicle like behavior into an attachment? Could I simply drop a vehicle script into an attachment, have the vehicle turn on and off from a touch or chat command or some such?

I would try but can't get in world right now to check.
_____________________
Tread softly upon the Earth for you walk on my face.
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
04-04-2008 05:23
Not possible. A vehicle is by definition a physical object. An attachment is by definition a phantom object. Not compatible.
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
04-04-2008 06:30
If you are trying to make a high prim vehicle the solution is other:

Divide the car in two (or more) parts. The main part has the vehcle script, and you sit on it.
The other(s) part(s) goes attached.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-04-2008 09:10
Fortunately the mass of the avatar (attachments do not modify the avatar's mass) is small enough that normal physical movement functions (llMoveToTarget(), llApplyImpulse(), etc.) do a very efficient job of moving it around without easily running out of energy. That means if you want to try to simulate vehicle movement from an attachment, you can do a reasonable job. You just might have a bit more math to do, and performance may not be as great as you'd expect. The unfortunate part is that you have to rely on the normal controls for turning since there is no way to rotate an avatar directly from an attachment.
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
04-05-2008 03:40
Well it was the rotation part that really interested me. I had tried using various rotation calls but to no effect in an attachment. Ah well, I guess I need to carry on poking. Thanks anyway guys.
_____________________
Tread softly upon the Earth for you walk on my face.
Byron McHenry
Registered User
Join date: 21 Sep 2004
Posts: 204
04-05-2008 11:51
From: Kahiro Watanabe
If you are trying to make a high prim vehicle the solution is other:

Divide the car in two (or more) parts. The main part has the vehcle script, and you sit on it.
The other(s) part(s) goes attached.


you can still fake a high prim vehicles

by creating a basic invisable ship around 15-20 pims seats and all then you take free accounts and you have them attach the ship to those avatars linening them up with the invisable parts then you leave the captian chair open for free use then the people flying the ship can still fly it with out worrying about having to detach anything once they get out of it
_____________________
For Real life items from computers to tvs, from fragrances- to dvd players at whole sale prices go to Discount Gifts great place from chirstmas shopping to birthday to anneverseries there is something for every one
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
04-05-2008 12:21
From: Byron McHenry
you can still fake a high prim vehicles

by creating a basic invisable ship around 15-20 pims seats and all then you take free accounts and you have them attach the ship to those avatars linening them up with the invisable parts then you leave the captian chair open for free use then the people flying the ship can still fly it with out worrying about having to detach anything once they get out of it

:S