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 how to alter a map by doing something in a different map
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#9
RE: how to alter a map by doing something in a different map

Yeah, you can and probably should use global variables. You declare them usually in your first level's .hps file. You can create a bool global variable and set it to false (at declaration). Then, whenever your player does whatever they need to do to get the old map to change, set your global variable to true.

Once this is done, you go to your OnEnter() function and check to see if you are entering with the global variable being "true". You can do this with an if-statement. If it's true, then activate whatever needs activating.

Dark Seclusion Here
04-29-2012, 11:41 AM
Find


Messages In This Thread
RE: how to alter a map by doing something in a different map - by FragdaddyXXL - 04-29-2012, 11:41 AM



Users browsing this thread: 2 Guest(s)