Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script adding
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
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
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Script adding

var += value;

Tutorials: From Noob to Pro
10-06-2012, 04:21 AM
Website Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Script adding

Thanks! Smile
10-06-2012, 04:35 AM
Find




Users browsing this thread: 1 Guest(s)