Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making areas change each time you enter them
Author Message
cook Offline
Member

Posts: 103
Joined: Apr 2011
Reputation: 0
Post: #1
Making areas change each time you enter them
Is it possible to do this without the use of keys? Like, is there any way I could set up a event to make a number change that's globally saved, and based on this number, a different set of callbacks are activated each time you enter the map - I know how to do the latter, but is saving a simple thing like a number possible globally(over numerous maps)?
06-08-2011 03:40 PM
Find all posts by this user Quote this message in a reply
Apjjm Offline
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #2
RE: Making areas change each time you enter them
this should be what you are looking for:
void SetGlobalVarInt(string& asName, int alVal);
void AddGlobalVarInt(string& asName, int alVal);
int GetGlobalVarInt(string& asName);

(This post was last modified: 06-08-2011 03:42 PM by Apjjm.)
06-08-2011 03:41 PM
Find all posts by this user Quote this message in a reply
cook Offline
Member

Posts: 103
Joined: Apr 2011
Reputation: 0
Post: #3
RE: Making areas change each time you enter them
Thanks a lot.
06-08-2011 04:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)