Blockland Forums > Modification Help

Changing vehicle state?

Pages: (1/2) > >>

yndaaa:

I was wondering if theres anyway to change a vehicles state such as from flying to land to flying again
my plan was to remove the brake command and leave the brake key for the state changer

if this is possible could someone please explain?

Treynolds416:

I feel bad that this topic hasn't gotten any replies.

I would assume that you would have to have both datablocks in the script, and then use a toggle function to switch between them.

Red_Guy:

... i wonder if you understand what your asking.

"change state from flying to land, and back"

so if the vehicle is flying 500 units in the air.. and you change state
   ... what do you want to have happen?   
      teleport to ground? fall and crash?  or something else?
keep in mind you will have to script all this.

then if the vehicle is driving, and runs off the edge of a cliff.  currently the vehicle falls, but if you "change state" to flying,  then what?

pocketrocket300:

I bet he was thinking of a harrier.

Destiny/Zack0Wack0:


--- Quote from: Red_Guy on April 01, 2011, 07:15:47 PM ---... i wonder if you understand what your asking.

--- End quote ---
???
All he wants is to switch from flying to driving. Not hard to understand, mate.

@OP: Just change the datablock when they press a certain key. Unfortunately the space bar brake is in the engine code, if I recall. You'll need to choose another key.

Pages: (1/2) > >>

Go to full version