Jump to content

Recommended Posts

Posted

Hi everyone,

 

Im trying to add a skybox to the default FPSPlayer.lua script.

 

As it says at this webpage:

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/camerasetskybox-r824

 

However when i add the line:

Texture* skybox = Texture::Load("Materials/Sky/skybox_texture.tex");

 

It gives me this error:

'=' expected near '*'

 

If i remove the * then gives me another error and so on... any help?

 

Thanks.

 

Ok, on the link at my OP, the section of LUA contains C++ code and viceversa.

 

Someone should fix that :)

Posted (edited)

It should be:

 

self.skybox = Texture:Load("Materials/Sky/skybox_texture.tex")

 

There is C++ code where there should be Lua code in the code example box (and vice versa). This should be filed under "documentation bug" biggrin.png

Edited by codeape

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.

×
×
  • Create New...