The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Refrencing script libraries?
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
Refrencing script libraries?

I know for scripting languages you can generally (read: always) build your own libraries of functions that can then be referenced from other scripts, and I was wondering if it is possible to do this kind of this with the level scripting for the hpl2 engine. I don't really know anything about AngelScript beyond what I've used to script levels with, but I have a list of function declarations that I would like to put into a library and have added to the script function list. Is this possible at all, or am I eternally doomed to copy and paste my list of functions into every script hps file?

Also as a bonus question, is it ok to have script below the "OnStart""OnEnter" and "OnLeave" functions? I remember from way back when when I tried to teach myself some cpp, I remember something about the order which functions are declared being important, but I don't really remember what these rules were exactly, so if someone could refresh my memory and tell me whether or not they apply to my dear hps files (though I assume that they would).

04-06-2012, 07:38 PM
Find


Messages In This Thread
Refrencing script libraries? - by Homicide13 - 04-06-2012, 07:38 PM
RE: Refrencing script libraries? - by palistov - 04-06-2012, 07:51 PM
RE: Refrencing script libraries? - by Homicide13 - 04-06-2012, 08:58 PM



Users browsing this thread: 1 Guest(s)