Jump to content

Rope/Winch system


Recommended Posts

I have an idea:

first of all, createSWATRope if this function is possible... ( between the car and the player that is gonna pull )

Anyway, second of all, warp a ped to that vehicle ( that you want to pull )

then set the ped alpha ( that you created ) to 0 and warp him to vehicle with:

setElementAlpha and warpPedIntoVehicle.

Then use the input functions:

setPedAnalogControlState and getPedAnalogControlState to get the state of the player that pull the car and to set it for the ped that is in the car ( that have alpha as 0 )

like :

  
 if getPedAnalogControlState(you,"forwards") == 1 then 
   setPedAnalogControlState(ped,"accelerate",1)  
end 
  

Link to comment
  • 1 month later...

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...