Noki Posted October 30, 2013 Share Posted October 30, 2013 Hi, So, I want to reduce the damage inflicted by the minigun. I'm using setWeaponProperty, and it does not seem to work. local mingunImprove = setWeaponProperty (38, "poor", "damage", 25) I'm unsure of what skill level to place in there. I've tried std, poor and pro, yet nothing works. I've also changed the property to accuracy to test it, but still nope. I got the same code to work on other weapons by replacing the weapon id, and that worked.. Link to comment
codeluaeveryday Posted October 30, 2013 Share Posted October 30, 2013 Dude you gotta remember that a minigun's fire rate is very fast, and the original minigun damage is 140, 25 is still killable almost instantly. Use numbers below five, I'd prefer 2 over any other number: setWeaponProperty(38, "pro", "damage", 2) All you had to do was just trial and error it. It's not a hard thing to do. Link to comment
Noki Posted October 30, 2013 Author Share Posted October 30, 2013 I tried doing the same with fire rate and accuracy, the results didn't show. Link to comment
Moderators IIYAMA Posted October 30, 2013 Moderators Share Posted October 30, 2013 cause accuracy needs the property: "spread" also. But: "spread" = Get only ......................................................... and fire rate is "get only" also. Link to comment
Noki Posted October 31, 2013 Author Share Posted October 31, 2013 cause accuracy needs the property: "spread" also.But: "spread" = Get only ......................................................... and fire rate is "get only" also. I could use the same script on most other weapons and have success. setWeaponProperty (29, "pro", "accuracy", 2) That would work fine on a MP5, but if I try to use it on a minigun, nope. I am very new to Lua and spread is something I'm unfamiliar with. I don't see how a get only [whatever word goes here] would work on a set function or whatever it's called. Link to comment
WASSIm. Posted October 31, 2013 Share Posted October 31, 2013 https://community.multitheftauto.com/in ... ls&id=7022 Link to comment
Moderators IIYAMA Posted October 31, 2013 Moderators Share Posted October 31, 2013 cause accuracy needs the property: "spread" also.But: "spread" = Get only ......................................................... and fire rate is "get only" also. I could use the same script on most other weapons and have success. setWeaponProperty (29, "pro", "accuracy", 2) That would work fine on a MP5, but if I try to use it on a minigun, nope. I am very new to Lua and spread is something I'm unfamiliar with. I don't see how a get only [whatever word goes here] would work on a set function or whatever it's called. I didn't show you the solution now, but I hope it will be the solution in the future. Now it is "get only", but in the future it may will be both. I also want it to be enabled, but most of the development guys aren't really specialising in building functions for deathmatch gamemodes...... 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