Unmount wheels...

Author Topic: Unmount wheels...  (Read 988 times)

Is there a function for unmounting wheels on a vehicles? like the oppisite of          
%obj.setWheelTire(0, jeeptire);

Use %obj.setWheelTire(0,EmptyTire);

umm isnt that a tire with no visible mesh but has a collision?

As far as I know, you can't eliminate the wheels on a wheeled vehicle.  You just have to change the wheels to a "fake" wheel that doesn't do anything.

Oh ok, Thanks ill try it.

I did something similar for Kaje on his Blocko Car or his Horse Carriage.  Check the script.

Not really, kaje's scooter only has two wheels without faking:

Code: [Select]
function scooterVehicle::onAdd(%this,%obj)
{
//mount the nothing tire and ski spring
%obj.setWheelTire(0, scootertire);
%obj.setWheelTire(3, scootertire);

%obj.setWheelSpring(0, scooterSpring);
%obj.setWheelSpring(3, scooterSpring);

%obj.setWheelSteering(0,1);

%obj.setWheelPowered(0,true);
    %obj.setWheelPowered(1,true);
}

Of course you can have a wheeled vehicle with 2 wheels, lol.  But I don't think you can have a wheeled vehicle with no wheels at all.

Bushido has a 1 wheeled vehicle XD

Of course you can have a wheeled vehicle with 2 wheels, lol.  But I don't think you can have a wheeled vehicle with no wheels at all.
When the jeep blows up it has no wheels, and doesn't mess up or crash? (It just doesn't actually drive anywhere)

Try overwriting the JeepVehicle::onAdd event, that will stop it from mounting any wheels and see what happens.

Of course you can have a wheeled vehicle with 2 wheels, lol.  But I don't think you can have a wheeled vehicle with no wheels at all.
When the jeep blows up it has no wheels, and doesn't mess up or crash? (It just doesn't actually drive anywhere)

Try overwriting the JeepVehicle::onAdd event, that will stop it from mounting any wheels and see what happens.

It's either debris (which is no longer a vehicle) or it has fake wheels (wheels that don't do anything).  Just use the fake wheels method...it works very well.

@ Space Guy: I PM'ed you.

I saw, I couldn't reply yesterday because my computer was broken.

I think it's the second, because you can still stay inside the vehicle and "steer" it (if it's a plane) for a second or two.