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 Help String reference within constant name (Advanced)
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: String reference within constant name (Advanced)

(03-09-2014, 02:23 AM)Mudbill Wrote: Well, booleans only have 2 different values (0 = false, anything but 0 = true). What would these e and i placeholders be? I think I can work with the value of the boolean, but the script would be a lot simpler if I could modify the boolean name in the way I want.

Edit: I'm unsure if what I'm trying is even possible because C++ is mostly compile-time. Changing these things may not work on run-time.

I tried having a string with the same name as the boolean, but it's treated separately. The string returns true but the boolean does not recognize it.

These e and i are indexes. As the X or Y increases, the e and i also increase.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-09-2014, 02:52 AM
Find


Messages In This Thread
RE: String reference within constant name (Advanced) - by PutraenusAlivius - 03-09-2014, 02:52 AM



Users browsing this thread: 1 Guest(s)