Volltron Posted May 20, 2020 Share Posted May 20, 2020 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
Volltron Posted May 20, 2020 Author Share Posted May 20, 2020 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 Link to comment
Moderators IIYAMA Posted May 20, 2020 Moderators Share Posted May 20, 2020 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now