Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How's my Fuzzy-Logic?

Amus White
Second Life Resident
Join date: 16 Nov 2004
Posts: 13
02-18-2005 01:50
Yabosaio!

Hey kids! i'm a naturalist SL pilot (like to fly in mouselook). Just emagine my suprise when i found how easy it seems to be, to make a mouseflight vehicle. i'm generaly new to scripting, but much to my shagrin, scripting seems to make more and more sence, the more i look at it. So i'm makeing progress.

But seriously: this is a ways down the road, but i'm wondering if mayhap prims within a vehicle can be scrpted to facilitate vehicle functions, for example; 'push-button' VTOL activation/deactivation. Or some other vehicular function that i can't think of right now, because the more i write this out the more i realize that a lot of the ideas i have can be handled by some other compleetly unrelated function, with no need to bother with the actual vehicle's oporation.

Also in relation to the mouseflight feature, (tho it's probabl what i think it is) can the 'disengage' function be set to a button hold? (like hold down the spacebar to lock the vehicles velocity/angle/attitude, in order to have a look arround the cocpit, for the bogey that just buzzed you)...

OH! Scenario;

"i'm cruseing about in my new spaceship and i'm comming in for a landing, so i hold down the spacebar to temporaraly disengage the mouseflight and hit the button in the cockpit to engage VTOL mode. Releaseing the spacebar, i'm back in controll. Position myself and hold spacebar again for one more check on the site, then bring her in. upon contact, i hold space and hit the other button, to shut down the engines."

But now that i write it out, i'm thinking that the 'buttons' could simply 'speek' commands to the ship, wich is listening on a hidden channel, and that would solve the whole mess! So i guess the real question is; How's my fuzzy-logic on this one? Workable? :D

~maus
Rhombur Volos
King of Scripture & Kebab
Join date: 6 Oct 2004
Posts: 102
02-18-2005 05:09
Second life's lsl scripting language is severely limited when it comes to key binding.
Only the movement keys and left mouse button are avaliable.
Using prims to create buttons on a vehicle control panel could be considered a waste with the current 31-prim limit to physical objects.

And vehicle scripting can be challenging, depending on what you want it to do.
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
02-18-2005 13:45
what you want to do can be done, but keep in mind you can only use these keys

up arrow / W
down arrow / S
left arrow / A
right arrow / D
shift left arrow / shift A
shift right arrow / shift D
page up / E
page down / C

in mouselook the right and left arrows are the same as shift arrow key out of mouselook. shift in mouselook does nothing (you'd think it would change the right and left arrows back to normal but it does not).

if you want push button opperation a better idea is to use llDialog to bring up a dialog box with buttons. or good ol voice commands work pretty well :).

good luck :).
_____________________
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-18-2005 13:58
Note also, that you can use combinations of those keys. You could have the up/down/fwd/back/left/right keys tailored to moving in their directions, but you could make it so that if someone held both the left and right keys at the same time, your vehicle switches into VTOL mode.
==Chris
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-18-2005 16:35
Related:

Besides the keys listed above you can also capture mouse clicks
Left Mouse Button
Left Mouse Button in Mouse Look
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey