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 Can HPL2 Scripts use AngelScript's import keyword?
eambertide Offline
Junior Member

Posts: 2
Threads: 1
Joined: Aug 2019
Reputation: 0
#3
RE: Can HPL2 Scripts use AngelScript's import keyword?

(08-03-2019, 06:49 PM)Mudbill Wrote: Me and others have tested this particular functionality extensively but have not come to any usable conclusion. My answer is that it does not work.

My guess is that it is dependent of some functionality in the host application (The HPL engine), and without that functionality added, we cannot use it. Since we don't have the source, we can't verify or change that.

The import keyword itself most likely allows the script file to compile successfully because it is supported by the language, but isn't able to actually read other files as the functionality would have you think, therefore it fails to load the requested function. You will notice that if you try to call a function that is "imported" with this keyword, you don't get an error, but the script execution halts for the running function, as is the expected behaviour when getting a runtime error like this.

Thank you so much for the quick answer, it is a shame tho :/
08-03-2019, 08:07 PM
Find


Messages In This Thread
RE: Can HPL2 Scripts use AngelScript's import keyword? - by eambertide - 08-03-2019, 08:07 PM



Users browsing this thread: 1 Guest(s)