Script adding - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Script adding (/thread-18651.html) |
Script adding - Rapture - 10-06-2012 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...) RE: Script adding - Your Computer - 10-06-2012 var += value; RE: Script adding - Rapture - 10-06-2012 Thanks! |