awgsknite Posted February 19, 2015 Share Posted February 19, 2015 I got this error saying that at 271 has a nil value when trying to change to a new level using the FPSweapons addon using the TriggerChangeMap.lua on an object to change levels to fix it put this code to replace the code that dont work there: put this here near that line 271 error in the fpsmeleeweapon.lua and then it works changing levels: function Script:Release() if self.emitter~= nil then self.emitter[0]:Release() --self.emitter[1]:Release() end self.emitter=nil ReleaseTableObjects(self.sound) end it just needed the if not nil statement there that someone forgot to put in (fpsweapons addon) http://steamcommunity.com/profiles/76561197977392956/7977392956/ Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 19, 2015 Share Posted February 19, 2015 I thought Josh had already fixed it. perhaps not at all places. http://www.leadwerks.com/werkspace/topic/11889-changing-level/ Link to comment Share on other sites More sharing options...
Josh Posted February 19, 2015 Share Posted February 19, 2015 Thanks, fixed. It was the melee weapon script that needed fixing. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts