Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Combine Thingss???
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#1
Combine Thingss???

Hi! I am creating a custom story called unconscious : prelude, and i got little problem with that!
I want to combine some items, but it doesnt work!!! this is the script!



void OnStart() {


AddCombineCallback("CombineThing", "chemical_container_1", "bucket_of_tar_1", "Combine", false);

}

void Combine(string &in asItemA, string &in asItemB){

RemoveItem("bucket_of_tar_1");
RemoveItem("chemical_container_1");
GiveItemFromFile("GiveThing", "chemical_container_full.ent");
}


would someone help me? i would love it!!!!
11-16-2012, 08:04 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Combine Thingss???

You're supposed to put combination callbacks in your inventory.hps file.

Tutorials: From Noob to Pro
11-16-2012, 08:45 PM
Website Find
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#3
RE: Combine Thingss???

(11-16-2012, 08:45 PM)Your Computer Wrote: You're supposed to put combination callbacks in your inventory.hps file.
But how? Sorry, i may sound like a noob, but i never have used combinecallbacks:=)
11-16-2012, 08:49 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: Combine Thingss???

http://wiki.frictionalgames.com/hpl2/tut...iferorange

This should help you Smile

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-16-2012, 09:13 PM
Find
jamistara Offline
Junior Member

Posts: 21
Threads: 7
Joined: Nov 2012
Reputation: 0
#5
RE: Combine Thingss???

(11-16-2012, 09:13 PM)The chaser Wrote: http://wiki.frictionalgames.com/hpl2/tut...iferorange

This should help you Smile
hey thanks! I got things under control and everything! Thank you!!!
11-16-2012, 10:30 PM
Find




Users browsing this thread: 1 Guest(s)