Motar2k Posted July 18, 2019 Share Posted July 18, 2019 How can I shield the windshield and the wheels of a vehicle, without having to shield the entire vehicle? Link to comment
Scripting Moderators srslyyyy Posted July 18, 2019 Scripting Moderators Share Posted July 18, 2019 8 minutes ago, Avival said: How can I shield the windshield and the wheels of a vehicle, without having to shield the entire vehicle? 1. If you are about damage when shooting glass. My solution: - Cancel damage on event which is responsible for player damage. * Simply check if player is in vehicle, and body part is 9. 2. I don't have idea for that. My solution: - setVehicleDamageProof, which also protects wheels. * Apply cancelEvent() for onClientVehicleDamage, damage vehicle by script. 1 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