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