tunaisafish Posted June 22, 2011 Share Posted June 22, 2011 If you've created a new fridge baseform, and added the script to it, then you don't need to use a persistent reference.ResetInventory ; When no object ref prefix is used, the 'current object' is implied. Should be working with either of the methods you used.Remember that it will run OnLoad. So it will run when the player returns back to base as the fridge re-renders.If you stood there watching it then it won't work. There's a time global similar to the GameDaysPassed global used above. Look on the 'Special Variables' page of the GECK wiki.Though it won't lead to a shorter script anyway.The vanilla fridge script is buggy btw. It will reset the fridge endlessly throughout the day. Link to comment Share on other sites More sharing options...
noobax Posted June 23, 2011 Author Share Posted June 23, 2011 Oh yeah that explains it. I just slept there for a day to check if it worked. thanks a lot dude Link to comment Share on other sites More sharing options...
Recommended Posts