Detect player hitting vehicle
#1

Is there a way to detect weather a player has used a baseball or a fist on a vehicle, I already made a code that checks if a player pressed KEY FIRE and is holding a baseball bat but is there a way to actually verify if he hit the vehicle's door and not just the air?
Reply
#2

You could try using OnVehicleDamageStatusUpdate and getting the players animation to check if they're holding a baseball bat, perhaps? (Animations)

Other things you might find useful:

GetPlayerAnimationIndex
GetAnimationName
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)