ParaToxic Posted April 25, 2012 Posted April 25, 2012 Hey I would like to change the color of a cagelight I have add to my scene in C++.I saw that in lua it is made so that the SetKey function is called and the string value is explored and converted to numbers and set to the RGBA vvariables. How can I make it in C++? Quote
Pixel Perfect Posted April 25, 2012 Posted April 25, 2012 Use one of the following functions: C: void EntityColor( TEntity entity, TVec4 &color, int recursive=0 ) C++: void Entity::SetColor( const TVec4& color, int recursive=0 ) Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++
ParaToxic Posted April 25, 2012 Author Posted April 25, 2012 But it doesn't work for me.The default color stays. Quote
ParaToxic Posted April 25, 2012 Author Posted April 25, 2012 Ahhh ok now it works,had to set the recursive value to 1 Quote
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.