Error: Attempt to index field 'parentgun' <Mystery Solved>
Helloes,
A question,
I've used CaveCricket's awesome dual weapon mode templates to have my FN F2000 switch between normal bullets and grenades. It works like a charm, except...
The console prints an error over and over again that goes like this:
Attachment:
ScreenDump003.jpg
ERROR: UniTec.rte/Scripts/SwitcherMain.lua:65: attempt to index field 'parentgun' (a nil value)I've stared at the SwitcherMain.lua file for hours and my eyes have turned into something mushy and leaked out of my sockets.
Does anyone know what is happening here?
The file:
Attachment:
SwitcherMain.txt
Any assistance would be greatly appreciated.