Frictional Games Forum (read-only)

Full Version: Script adding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't remember the correct way to add floats or whole numbers other than the ++.

float AGlobalLightRed; (Variable Declaration)
AGlobalLightRed = 0.072f; (Value)
AGlobalLightRed + 0.05f; (This part doesn't work, not sure what I'm doing wrong on this line of code. My script works, AGlobalLightRed debug message reads as 0.072, but the +0.05f doesn't want to add. The compiler doesn't bitch about any mistakes either...)
var += value;
Thanks! Smile