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
scripting inventory.hps
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: scripting inventory.hps

In the inventory.hps, add callbacks for each part to be combined with the other 2 parts. You should have 3 total. Place the AddCombineCallback functions under OnGameStart()

Combos:
1 + 2
1 + 3
2 + 3

I'm pretty sure when you script a combination, it applies both ways (using the first on the second works when using the second on the first)

Make each callback call the same function, under which you remove all 3 of the items and give the player the completed item. The appropriate script functions can be found here: http://wiki.frictionalgames.com/hpl2/amn...#inventory

(This post was last modified: 12-31-2011, 12:46 AM by palistov.)
12-31-2011, 12:45 AM
Find


Messages In This Thread
scripting inventory.hps - by stokesie95 - 12-31-2011, 12:20 AM
RE: scripting inventory.hps - by palistov - 12-31-2011, 12:45 AM



Users browsing this thread: 1 Guest(s)