Jump to content

Water Prefab (HELP)


SlipperyBrick
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

  • Upvote 7

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

  • 3 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...