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 Using Global.hps to use a script in every level
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#14
RE: Using Global.hps to use a script in every level

(05-15-2013, 01:26 AM)JustAnotherPlayer Wrote: Ok, so it can't do so. Can it do the include command by Apjjm?
The only way to get a separate script file to run in every map is to use a bit of a hack like including a preprocessor to add stuff like #include. This is akin to just pasting the script at the top of all your script files though, except you have some tool do it all for you automatically, and you only have to make changes in one place if you mess something up.

To re-iterate what people have said about global.hps, i think it only runs once as soon as the custom story is started (or new game pressed). You can't add timers or any stuff like that using it. Even if it was run at the start of every map, classes and such in one script file are only in the scope of that script file in amnesia.
05-15-2013, 03:30 AM
Find


Messages In This Thread
RE: Using Global.hps to use a script in every level - by Apjjm - 05-15-2013, 03:30 AM



Users browsing this thread: 1 Guest(s)