Jump to content

[Help] Using setWeaponProperty on minigun


Noki

Recommended Posts

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
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
  • Moderators
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...