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
How to end custom story as a Demo?
Zypherzemus Offline
Member

Posts: 94
Threads: 7
Joined: Jul 2011
Reputation: 0
#18
RE: How to end custom story as a Demo?

(07-14-2011, 07:13 AM)convolution223 Wrote:
(07-14-2011, 07:08 AM)Snuffalofagus Wrote: EEK, I'm not very good with variables and such.
Hmm...
AddLocalVarInt? or SetLocalVarInt?
and would I need to make a new .hps file strictly for local variables? (kinda like global variables)
and If not, where would the command(s) go? OnStart, or OnEnter?
sorry for all the questions, I'd rather ask them now and not bug you later y'know?

:o wait... you need to make a new .hps file for global variables? I was trying to use global variables I set up in one map in a different map and it wasn't working, but are you sure you set up another .hps file? what would it be called and what would it look like (or just point me to where i can find an example from the main game, please)?

It's very simple. You use the "(Add, Set, etc.)GlobalVar(Int, Float, String, etc.) and place it in the .hps file. It's supposed to be named "global.hps"
and it's only one section.
Here:
void OnGameStart()
{

}
07-14-2011, 07:26 AM
Find


Messages In This Thread
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 03:11 AM
RE: How to end custom story as a Demo? - by Zypherzemus - 07-14-2011, 07:26 AM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 12:30 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 05:54 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 07:38 PM
RE: How to end custom story as a Demo? - by xtron - 07-14-2011, 09:20 PM
RE: How to end custom story as a Demo? - by xtron - 07-15-2011, 12:20 AM
RE: How to end custom story as a Demo? - by xtron - 07-15-2011, 01:00 AM
RE: How to end custom story as a Demo? - by xtron - 07-16-2011, 10:20 PM



Users browsing this thread: 1 Guest(s)