Mr.unpredictable. Posted June 24, 2014 Posted June 24, 2014 hey i just attached a rocket launcher to my car, but i wanted to reduce the damage rocket does like if it hits the car it should only do 10% damage not blast the car i tried this but nothing happend setWeaponProperty(35, "poor", "damage", 10) can any one tell what should i do?
Anubhav Posted June 24, 2014 Posted June 24, 2014 function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute.
cheez3d Posted June 24, 2014 Posted June 24, 2014 function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute. Why would you execute that every 5 seconds?
Mr.unpredictable. Posted June 24, 2014 Author Posted June 24, 2014 function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute. it still blasts the car i don't want it to blast the car it should only do little damage
Castillo Posted June 24, 2014 Posted June 24, 2014 I don't think you can actually modify that. P.S: Why would you execute the same code every 5 seconds, infinite times?
ADCX Posted June 24, 2014 Posted June 24, 2014 Have you tried setting it for all three weapon skills?
Mr.unpredictable. Posted June 25, 2014 Author Posted June 25, 2014 i tried all posible way but still the rocket launcher destroys the car, i think i should attach some other weapon which does less damage and more fun.
Dealman Posted June 25, 2014 Posted June 25, 2014 Can't you use the event onClientVehicleDamage and cancel the event? Check what damaged the car, if it was a rocket - remove 10% of the hit vehicle's health...?
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