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. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
ADCX Posted June 24, 2014 Posted June 24, 2014 Have you tried setting it for all three weapon skills? My Skype: scriptmtasupport My Resources: http://www.scriptmta.co.nr - Cheap high-quality MTA resources by me and Kevin (ScriptMTA.co.nr)
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...? If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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