Allavaz Posted February 12, 2014 Posted February 12, 2014 Bueno, el título lo dice todo, quiero lograr que el auto no se prenda fuego cuando vuelque, pero no encuentro manera de lograrlo. Alguna idea?
Castillo Posted February 12, 2014 Posted February 12, 2014 La unica manera de hacer esto es hacer al vehiculo indestructible ( damage proof ).
Alexs Posted February 12, 2014 Posted February 12, 2014 Según se, en Paradise los vehículos no explotan, quizá esto te guié un poco: addEventHandler( "onVehicleDamage", root, function( loss ) if getElementHealth( source ) <= 301 then setElementHealth( source, 300 ) setVehicleDamageProof( source, true ) setVehicleEngineState( source, false ) vehicles[ source ].engineState = false if getVehicleOccupant( source ) then outputChatBox( "(( Your engine broke down. ))", getVehicleOccupant( source ), 255, 204, 0 ) end end end ) https://github.com/mabako/mta-paradise/ ... hicles.lua
Allavaz Posted February 12, 2014 Author Posted February 12, 2014 Bueno, al final logre que se haga flip solo cuando quede dado vuelta. Gracias a todos.
Recommended Posts