Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need help with script that modifies vehicle properties by writing message

Jahline Steed
Registered User
Join date: 15 Aug 2004
Posts: 4
01-14-2005 07:40
I am new to this scripting language.

I have just created a flying vehicle with buoyancy. I tweaked the vehicle script until I got the aircraft flying nicely while still being able to hover and takeoff vertical. I need to, however, change some buoyancy and hover values within the script while im flying to change "modes". Like when i want to jump straight up, I have to insert a large buoyancy value, then reduce it for normal flight. Works great, but i cant keep editing the script every time i want to change modes.

I would rather push a button (like the ARMORD Retro Belt which has a pop-up window which lets you change flight characteristics on the fly) or be able to write a message to local channel which initiates the change... You know "if message = jump, then set buoyancy = 100". I know thats not syntax, but its the logic I'm trying to achieve.

Can anybody help me out? Provide a short example? Any specific tutorials on this exact problem? I'm going through the manual but it seemed to skip on the message input -> IF THEN argument and I cant get the example to work.

Any help is appreciated
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
01-14-2005 07:50
there are plenty of examples in the forum, if you search for them. Also on my lot in dari. There is a dance bracelet, witch I have published under the open source license. Part of it consists of taking string input (listen) and then recognizing commands including dynamic commands. Like level (value).