Jump to content

Help with weapon list script


didisaan

Recommended Posts

I'm trying to create a script that takes all the weapons from a formlist and gets their name and repair list, and prints them out to the console (for testing purposes).

It gets the name but not the repair list.

Someone please help :)

 

array_var Entry
ref rForm
string_var sWeaponName
ref rRepairList


Begin Gamemode


If (GetGameLoaded || GetGameRestarted)


foreach Entry <- (GetListForms aaaWeaponList)
let rForm := *Entry
let sWeaponName := GetName rForm
let rRepairList := GetRepairList rForm
Print "Name: " + $sWeaponName + " Repair List: " + $rRepairList
loop


endif


End
Link to comment
Share on other sites

  • Recently Browsing   0 members

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