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
Chemical mixing?
blend Offline
Junior Member

Posts: 5
Threads: 2
Joined: Sep 2011
Reputation: 0
#1
Chemical mixing?

Hey,

I just wanted to ask if its possible to put chemicals into your custom stories. Ive tried looking in the original game files but that stuff is just way too hard for me to put into my custom story, not a pro in scripting.

Couldnt find any tutorials on this either. Does anyone know how to do this? Smile
10-23-2011, 09:09 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Chemical mixing?

Not very sure if this would work:
Go into editor, make the pot 1 wherever you want it to be, then make pot 2 directly on it and aswell but uncheck "active" so that it wont appear until you tell it to. And then:


"AddUseItemCallback" you would for making a key work on a door:

void OnStart()
{
AddUseItemCallback("", "name of item", "thing to interact", "nameoffunction", true);

}

And then in the function:

void namefunction(string &in asItem, string &in asEntity)
{
SetEntityActive("pot1", false);

SetEntityActive("pot2", true);

}

And then, make it so that the pot2 is required to advance through the door or where ever:

void OnStart()
{
AddUseItemCallback("", "pot2", "door or what ever", "getthrough", true);

}

void getthrough(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("door", false, true);

}

I don't know if that would work, but its worth a shot.

10-23-2011, 12:02 PM
Find
blend Offline
Junior Member

Posts: 5
Threads: 2
Joined: Sep 2011
Reputation: 0
#3
RE: Chemical mixing?

Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks!
10-23-2011, 01:43 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Chemical mixing?

(10-23-2011, 01:43 PM)blend Wrote: Ah, that helps a bit, I was actually thinking of something like the acid mixing thing in the original story, but this will do. Thanks!
Yeh, i have no idea how that worked in the original story :S

10-23-2011, 01:49 PM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#5
RE: Chemical mixing?

If you want to know how the main game did it just look it up in their .hps. I've seen it, it's confusing.

Ba-da bing, ba-da boom.
10-25-2011, 10:18 PM
Find




Users browsing this thread: 1 Guest(s)