SetAttachmentCosmeticVariants
Set the AttachmentCosmeticVariantIndexes data to be passed in to the weapon
Example:
SetAttachmentCosmeticVariants( "mp7_mp", "acog", 2, "grip", 1 )
Parameters
| Parameter | Summary |
|---|---|
| *weaponname | the name of the base weapon to return |
| [attachmentname_1] | the name of the first attachment |
| [variantindex_1] | the index of the cosmetic variant to use for the first attachment |
| [attachmentname_2] | the name of the second attachment |
| [variantindex_2] | the index of the cosmetic variant to use for the second attachment |
| [attachmentname_3] | the name of the third attachment |
| [variantindex_3] | the index of the cosmetic variant to use for the third attachment |
| [attachmentname_4] | the name of the fourth attachment |
| [variantindex_4] | the index of the cosmetic variant to use for the fourth attachment |
| [attachmentname_5] | the name of the fifth attachment |
| [variantindex_5] | the index of the cosmetic variant to use for the fifth attachment |
| [attachmentname_6] | the name of the sixth attachment |
| [variantindex_6] | the index of the cosmetic variant to use for the sixth attachment |
| [attachmentname_7] | the name of the seventh attachment |
| [variantindex_7] | the index of the cosmetic variant to use for the seventh attachment |
| [attachmentname_8] | the name of the eighth attachment |
| [variantindex_8] | the index of the cosmetic variant to use for the eighth attachment |
* = mandatory