Vehicle features:
-headlights
-turn signals
-brake lights
-reverse lights
(These all do work, but are not working as intended.)
Bloodknight wrote:Vehicle features:
-headlights
-turn signals
-brake lights
-reverse lights
(These all do work, but are not working as intended.)
by not intended you mean when you hit the brakes, the headlights come on so you can see the full horror on the face of the victim late at night?
brittscott wrote:lol yep that's it.
The car has a random skin on it and sometimes the lights don't show up the best. My way of thinking is going in reverse, it should show the brakes until the car starts moving backwards. Then the reverse lights should light up, but it doesn't currently do that.
kent wrote:brittscott wrote:lol yep that's it.
The car has a random skin on it and sometimes the lights don't show up the best. My way of thinking is going in reverse, it should show the brakes until the car starts moving backwards. Then the reverse lights should light up, but it doesn't currently do that.
The reverse lights aren't working because $movementSpeed is a constant. It will always be 1 unless it is changed with setSpeed() (then it will always be whatever you set it to). As it sits, looks like the lights *should* toggle every time the bound button is pressed or released.
It needs a vehicle velocity check so the reverse lights can be activated/deactivated when the velocity switches between positive/negative. But I don't think you can do the check where you are hooking it ( movebackward() should only get called when the key press state changes ). Maybe make a tickable script to manage the lighting toggled in movebackward() when $mvBackwardAction > 0. That might be a sort of dirty way to do it ... but it's the best I can think of right now.
kent wrote:Sweet! Thanks.
I'm tossing together a kitchen-sink WheeledVehicle resource (close enough to play with, but not quite ready to release). Is it OK if I add this model to it?
@Jason Campbell: I already snagged your Jeep. Thanks to you as well.