Jump to content

Evitar que el auto se prenda fuego al darse vuelta


Allavaz

Recommended Posts

Posted

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?

Posted

La unica manera de hacer esto es hacer al vehiculo indestructible ( damage proof ).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

Developer @ MYVAL

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...