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
Global variables in SOMA
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#3
RE: Global variables in SOMA

What if it's a custom class type?

PHP Code: (Select All)
    array<cStuffaMyStuff;
    
  class 
cStuff
 
{
    
int ID;
    
tString Name;
    
tString Description;
    
float Value;
 } 

aMyStuff is the var I want to share across levels.

I tried those cScript_SetGlobalVar* methods but they don't seem to support arrays or custom types.

(This post was last modified: 07-11-2016, 12:16 AM by Daemian.)
07-10-2016, 11:55 PM
Find


Messages In This Thread
Global variables in SOMA - by Daemian - 07-10-2016, 11:36 PM
RE: Global variables in SOMA - by Abion47 - 07-10-2016, 11:49 PM
RE: Global variables in SOMA - by Daemian - 07-10-2016, 11:55 PM
RE: Global variables in SOMA - by Daemian - 07-11-2016, 02:50 AM
RE: Global variables in SOMA - by Abion47 - 07-11-2016, 03:28 AM
RE: Global variables in SOMA - by Daemian - 07-11-2016, 05:24 AM



Users browsing this thread: 1 Guest(s)