Black Ops III

GetRandomCompatibleAttachmentsForWeapon

Returns an array of compatible attachments. If num desired attachments are specified then that many attachments will be returned if possible

Example:

GetRandomCompatibleAttachmentsForWeapon( weaponObject, 4 )

Parameters

ParameterSummary
*weaponThe weapon name.
num desired attachmentsMax number of compatible attachments desired. If the number is more than available attachments for the weapon, it will just not return that many.

* = mandatory