SlipperyBrick Posted February 2, 2014 Share Posted February 2, 2014 Hey guys, I am having some trouble setting up the water prefab. I have all the necessary files downloaded and placed in their folders. I have done a little bit of Lua scripting and I keep getting an error 'attempt to index 'water' (a nil value)'. I am a novice at Lua scripting and have only started learning in the last few weeks and I am trying to figure out what I am missing. Any help would be appreciated. I can post some screenshots of the script if you need to see it. Quote Link to comment Share on other sites More sharing options...
shadmar Posted February 2, 2014 Share Posted February 2, 2014 The watermesh have to be a child under camera. Camera script searches for it's child water if not found it will be nil. App.water = self.entity:FindChild("WaterMesh") However, I will soon upload a new more userfriendly version for the current beta which has a more real underwater effect and is FPSPlayer friendly. 7 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
DanceTweety Posted February 21, 2014 Share Posted February 21, 2014 Sound great!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.