Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

multi-mode vehicle gotchas?

Mereille Despres
Registered User
Join date: 5 Sep 2007
Posts: 79
11-09-2007 11:42
Hi all.

I'm starting work on a multi-mode vehicle. I'd like it to switch between a ground vehicle, and flight vehicle on command.

Are there any 'gotchas' that I should be aware of when changing vehicle settings and flags? Such as values that don't behave properly when doing this?
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
11-09-2007 12:35
im not sure how to do it off the top of my head, but you can have it set so when your within 5-10 m of ground it would switch the physics of the vehical, but yuo would still need bouyancys to take back off
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
11-09-2007 14:27
Could you use chat commands to alter the behavior of the vehicle.

You could set the buoyancy of the vehicle and alter it's motors and such that way but I have never tried it personally.

The only time I have used chat commands in vehicles is to start and stop them and cause a submarine to emergency surface. All these uses only switched the vehicle physics on and off.
_____________________
Tread softly upon the Earth for you walk on my face.
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
11-09-2007 14:30
I believe a call like llRemoveVehicleFlags(-1); removes all of them. So put each vehicle in its own state and clear the slate on each transition. Don't quote me though.
_____________________
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-09-2007 14:34
Shouldn't really be any insurmountable problems except for the number of hours you are going to put into this project. Just have a button or something in the vehicle that will switch it back and forth between two states. So basically just a couple of tweaks to a standard vehicle script and a flight script paste each into a different state. Then you will have to throw in any other functions such as wings popping out etc.

I would even suggest working both modes as seperate scripts until you had each debugged and working properly before you merge them.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-09-2007 16:50
for switching modes, you can either use any of the take controls keys available, or combinations of them....

for instance a friend built a scooter for tribute island (which doesn't seem to be open to the public yet) in which pgup+pgdn triggered the change in modes, and the single keys either shifted gears (ground mode) or raised/lowered the vehicle (fly mode)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -