Jump to content

Slow walk (off sprint)


Recommended Posts

Hello all, whether it is possible or I would ask for help in the implementation of a short script that works by blocking running on the "shift" or "space" (as one who has set about sprinting), by simply clicking in and went slowly went by clicking ALT would be slightly faster (trot), I would ask for help. Sorry for my bad english (70% translator).

Link to comment

I see, but the example is about vehicle fire.

function disableFireForHydra ( theVehicle, seat, jacked ) 
    if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra 
        toggleControl ( source, "vehicle_secondary_fire", false ) -- disable their fire key 
    else -- if they entered another vehicle 
        toggleControl ( source, "vehicle_secondary_fire", true ) -- enable their fire key 
    end 
end 
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), disableFireForHydra ) 

I looking for slow walking in key "w" and small run on the ALT + W.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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