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
Adv Scripting Questions
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#3
RE: Adv Scripting Questions

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.
(This post was last modified: 08-02-2011, 11:35 PM by Apjjm.)
08-02-2011, 11:07 PM
Find


Messages In This Thread
Adv Scripting Questions - by Endlvl - 08-02-2011, 10:09 PM
RE: Adv Scripting Questions - by Kyle - 08-02-2011, 10:19 PM
RE: Adv Scripting Questions - by Apjjm - 08-02-2011, 11:07 PM
RE: Adv Scripting Questions - by Endlvl - 08-02-2011, 11:08 PM
RE: Adv Scripting Questions - by Apjjm - 08-02-2011, 11:47 PM
RE: Adv Scripting Questions - by Endlvl - 08-03-2011, 12:12 AM



Users browsing this thread: 1 Guest(s)