Black Ops III

GetWeapon

Get the requested weapon object based on game mode agnostic weapon name string

Example:

GetWeapon( "ar_standard", "acog" )

Parameters

ParameterSummary
*weaponnamethe name of the base weapon to return
[attachmentname_1 or array of attachments]the name of the first attachment to return
[attachmentname_2]the name of the second attachment to return
[attachmentname_3]the name of the third attachment to return
[attachmentname_4]the name of the fourth attachment to return
[attachmentname_5]the name of the fifth attachment to return
[attachmentname_6]the name of the sixth attachment to return
[attachmentname_7]the name of the seventh attachment to return
[attachmentname_8]the name of the eighth attachment to return

* = mandatory