| Rapture   Posting Freak
 
 Posts: 1,078
 Threads: 79
 Joined: May 2011
 Reputation: 
30
 | 
			| Script adding 
 
				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...)
 
				
(This post was last modified: 10-06-2012, 04:21 AM by Rapture.)
 |  | 
	| 10-06-2012, 04:13 AM |  | 
	
		| Your Computer   SCAN ME!
 
 Posts: 3,456
 Threads: 32
 Joined: Jul 2011
 Reputation: 
235
 | 
			| RE: Script adding 
 
				var += value;
			 
 |  | 
	| 10-06-2012, 04:21 AM |  | 
	
		| Rapture   Posting Freak
 
 Posts: 1,078
 Threads: 79
 Joined: May 2011
 Reputation: 
30
 | 
			| RE: Script adding 
 
				Thanks!    |  | 
	| 10-06-2012, 04:35 AM |  |