Quote:Does HPL2 have a onkeypress() function?
No, but you can detect all the movement functions & the lantern apart if the player doesn't move at all with a work-around.
Quote:Can you use a method or function to receive player camera head position (not changing it just reading it)?
You can get the position of the head relative to the player simply by the fact that you can just store what you set it to in a variable - it doesn't change on it's own. Getting the position of the player is much more difficult, and impractical to do at any precise level - this feature wasn't deemed necessary (sadly) as the levels are designed around triggers.
Quote:Does anyone know any other functions that are from AngelScript that were used to create the game but are not mentioned on the wiki?
AddKeyPart(int x); //This was to do with the ending code in Justine
MovePlayerForward(float afAmount); //Must be called every 1/60 seconds, from justine
SetPlayerPermaDeathSound(string asFile); //Self explanatory, again from justine
You can also use classes and all the stuff (that doesn't use extensions) in the
angelscript documentation - but the states of the classes and global vars are not saved. You can detect loading using this, though.
Quote: Stuff such as keypress, changing the position of the camera, etc. If these things are not supported by the engine is their any work around such as making a full conversion or accessing other base files?
Work-arounds depend entirely on what you are trying to achieve, a full conversion will let you change the language files and config files, but not expose any extra scripting functionality. The scripting language is very focused on setting up levels and puzzles by registering callbacks, and not building new games out of, which isn't to say it can't be done.