Page 1 of 1

Brief example of enabling a weapon upgrade?

Posted: 16 Jan 2018, 23:49
by sLoPpYdOtBiGhOlE
How do I enable a weapon upgrade via script?

As a task reward I'm giving a weapon with attached addons eg: scope, silencer, grenade launcher.
I managed to work out how to reward the weapon with attached addons via the standard task system.

But one weapon I want to give needs an upgrade enabled to add the scope.
And another weapon needs a grenade launcher upgrade to attach the launcher.
I don't have any probs checking and attaching the addons, providing their required weapon upgrades are enabled.

Any pointers to a brief example of setting weapon upgrades would be appreciated.