If you are referencing the SWEP variable inside a SWEP function, you use self:
So change the line in SWEP:Initialize() to self:CreateViewModels()
Also I wouldn't bother splitting them into separate files - more trouble that what it's worth imo.
-snip- Thanks Feihc.
Sorry, you need to Log In to post a reply to this thread.