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 and Local Map variables.
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#3
RE: Global variables and Local Map variables.

The scope with which the variables can be accessed is equivalent. However, Global variables (in terms of the script) are not restored when a save & load occurs. "SetLocalVar" functions let the values associated with the variables be preserved when saves occur, and as such you should really be using those with the exception of a few very particular circumstances.

Edit: Ninja'd.
(This post was last modified: 04-28-2012, 09:01 PM by Apjjm.)
04-28-2012, 09:00 PM
Find


Messages In This Thread
RE: Global variables and Local Map variables. - by Apjjm - 04-28-2012, 09:00 PM



Users browsing this thread: 2 Guest(s)