Mr.unpredictable. Posted June 24, 2014 Share 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? Link to comment
Anubhav Posted June 24, 2014 Share Posted June 24, 2014 function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute. Link to comment
cheez3d Posted June 24, 2014 Share 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? Link to comment
Mr.unpredictable. Posted June 24, 2014 Author Share 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 Link to comment
Castillo Posted June 24, 2014 Share 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? Link to comment
ADCX Posted June 24, 2014 Share Posted June 24, 2014 Have you tried setting it for all three weapon skills? Link to comment
Mr.unpredictable. Posted June 25, 2014 Author Share 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. Link to comment
Dealman Posted June 25, 2014 Share 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...? 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