PDA

View Full Version : Changing a vehicle's type while playing



legacy-Boinga
06-02-2006, 01:08 PM
Is it possible to change a vehicle's type mid game?

Like I have a car that I want to be able to switch between "hover mode" and "wheeled mode" at the push of a button.

In hover mode I want it to drive around like the Manta, and in wheeled mode I want it to drive around like the Scorpion.

Is it possible to have a vehicle that changes its type during play?

legacy-^::B!G-A::
06-02-2006, 03:38 PM
i build a scorpion that does this very well, just a small bug with the weapon as it transforms, its a very smooth transistion its almost 10/10 (Perfect)

legacy-Bigcheeese
06-02-2006, 03:39 PM
Now as for how to do it :p just add repulsers when its in hover mode.

legacy-Boinga
06-02-2006, 06:07 PM
i build a scorpion that does this very well, just a small bug with the weapon as it transforms, its a very smooth transistion its almost 10/10 (Perfect)
You going to share how you did this? i dont need weapons, its a weaponless vehicle.

legacy-^::B!G-A::
06-03-2006, 12:21 AM
well i designed each vehicle, extended manta extended raptor and extended a regular RV

first i set the PostBeginPlay for the Raptor and Manta versions to set the wheel
bones to make it look probable lol
then i made a function with if statements in each vehicle to execute the transformation
then i noticed a problem, if you set the bone rotation on the wheeled one it will crash,
so i designed an actor with the same mesh and replication for the skeleton and used a tick to make basic animation for the wheel bones

legacy-Boinga
06-06-2006, 08:52 PM
well i designed each vehicle, extended manta extended raptor and extended a regular RV

first i set the PostBeginPlay for the Raptor and Manta versions to set the wheel
bones to make it look probable lol
then i made a function with if statements in each vehicle to execute the transformation
then i noticed a problem, if you set the bone rotation on the wheeled one it will crash,
so i designed an actor with the same mesh and replication for the skeleton and used a tick to make basic animation for the wheel bones
Interesting. But how did you get it to switch bring being a manta to being a scorpion? did you have it extend from both manta and scorpion

Xyx
06-07-2006, 02:35 AM
One way about it is to make two vehicles (one extended from ONSWheeledCraft and one extended from ONSHoverCraft). Then you can spawn the new type vehicle, move the driver into it, copy over the old vehicle's health, apply the old vehicle's momentum and destroy the old vehicle.

legacy-Me!
06-07-2006, 05:35 PM
As far as morphing into another 'Vehicle', I don't know if the Leviathan would be a good example. Might want to take a look at it.

legacy-^::B!G-A::
06-10-2006, 01:11 AM
i actually kept the scorpion model, i just anim'ed the wheels to turn special ways for it to be probable