Jump to content

I need help with vehicle damage


Recommended Posts

I'm trying to make a script where another value takes the damage the vehicle gets instead of the vehicle's hp and I wanted to know if it's possible to make it so the player can "deal damage" to the other value as long as the vehicle is in "setVehicleDamageProof, true"

Link to comment
  • Moderators
1 minute ago, Volltron said:

I made it by canceling event and then subtracting the loss value from the other value but I'm still wondering if it's possible doing it while vehicle is damage proof

It is not possible when the vehicle is damageproof, unless you use events that are fired before the damage, like onClientPlayerWeaponFire and onClientVehicleCollision.

 

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