The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Script adding - by Rapture - 10-06-2012, 04:13 AM
RE: Script adding - by Your Computer - 10-06-2012, 04:21 AM
RE: Script adding - by Rapture - 10-06-2012, 04:35 AM



Users browsing this thread: 1 Guest(s)