drakth Posted September 19, 2014 Share Posted September 19, 2014 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 Quote Link to comment Share on other sites More sharing options...
codeape Posted September 19, 2014 Share Posted September 19, 2014 (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" Edited September 19, 2014 by codeape Quote Link to comment Share on other sites More sharing options...
dbk3r Posted September 20, 2014 Share Posted September 20, 2014 this worked for me local skybox = Material:Load("Materials/Sky/skybox_texture.mat") self.camera:SetSkybox(skybox) Quote Link to comment Share on other sites More sharing options...
Josh Posted September 21, 2014 Share Posted September 21, 2014 Fixed. Quote 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
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.