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
Multiple Issues Help I NEED HELP!
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#1
I NEED HELP!

Hey, guys. So i got a lot of sequences in my CS, A Forgotten Memory. But, i don't have the knowledge to do these things. Here they are;

1. I want area when i collide with it, i cant move (the Block box), but i want it to be interactable and when i do it, my health gets lowered and a text shows up.

2. I want an piano to play whenever i didn't look at it, and it suddenly stopped when i do, with a dust, as if someone was there.

3. In the original game, (in the Wine Cellar, to be exact.) a door was banging by it self and stops when you interact with it. How do i do this?

4. How do i roll the credits?

5. How do i destroy an object using an item?

More questions will come. But so far, those are the only problems.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 02-18-2013, 03:12 PM by PutraenusAlivius.)
02-17-2013, 12:21 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#2
RE: I NEED HELP!

1. First you make a script area and an unactive block box. After that put a script area where you want to interact with. At the interact area you need to go to the second tab and check the interact thingy and fill the interact callback box (test1 for example. This for the text if you interact with it). For the lower health thingy, I don't remember the script. Ask someone else.

2. This is a pretty hard script. And I don't know a single thing about this. You can try by putting 2 or 3 script areas and then you script it.

3. Better change the door to the original cellar door. Make the Y : 0.025 - 0.075 . Oh yeah, make the door a little bit to the front. To make it doesn't do auto close if you know what I mean.

EDIT : Forget what I said about no. 3. I thought you typed hanging. Lol. Follow i3670 instead.

[Image: the-cabin-in-the-woods-masked-people.jpg]
(This post was last modified: 02-17-2013, 12:53 PM by No Author.)
02-17-2013, 12:45 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#3
RE: I NEED HELP!

2. LookAtCallback

SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

void MyFunc(string &in asEntity, int alState)
alState: 1 = looking, -1 = not looking

3. RemoveTimer, AddTimer and InteractCallback



http://wiki.frictionalgames.com/hpl2/amn..._functions

"What you think is irrelevant" - A character of our time

A Christmas Hunt
(This post was last modified: 02-17-2013, 12:49 PM by i3670.)
02-17-2013, 12:48 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: I NEED HELP!

(02-17-2013, 12:48 PM)i3670 Wrote: 2. LookAtCallback

SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt);

void MyFunc(string &in asEntity, int alState)
alState: 1 = looking, -1 = not looking

3. RemoveTimer, AddTimer and InteractCallback



http://wiki.frictionalgames.com/hpl2/amn..._functions
Thanks. But i don't understand any of these.

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-17-2013, 02:18 PM
Find
343 Offline
Junior Member

Posts: 19
Threads: 0
Joined: Jan 2013
Reputation: 3
#5
RE: I NEED HELP!

God damn, use a proper thread title.

Also like i3670 linked:

http://wiki.frictionalgames.com/hpl2/amn..._functions
02-17-2013, 03:41 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#6
RE: I NEED HELP!

For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.

[Image: the-cabin-in-the-woods-masked-people.jpg]
(This post was last modified: 02-18-2013, 12:20 AM by No Author.)
02-18-2013, 12:17 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#7
RE: I NEED HELP!

(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-18-2013, 09:58 AM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#8
RE: I NEED HELP!

(02-18-2013, 09:58 AM)JustAnotherPlayer Wrote:
(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.

You mean like spamming on the forum ?

[Image: the-cabin-in-the-woods-masked-people.jpg]
02-18-2013, 10:16 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#9
RE: I NEED HELP!

(02-18-2013, 10:16 AM)No Author Wrote:
(02-18-2013, 09:58 AM)JustAnotherPlayer Wrote:
(02-18-2013, 12:17 AM)No Author Wrote: For the credits, you should check how FG made it. Or check some CS.

If your gonna ask more questions, make another thread.
That's just gonna clutter the forums.

You mean like spamming on the forum ?
Yep.

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-18-2013, 02:05 PM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#10
RE: I NEED HELP!

For 3, you'll want to use AddPropForce to push the door, but have the function repeat using a timer, and have the force switch sides so it is pushing the door closed, then open, closed again etc. You could just look in the wine cellar scripts to see how FG did it, of course.

Perhaps something like this...

void OnEnter()
{
SetSwingDoorDisableAutoClose("doorname", true); // to make sure the door does not close
AddTimer("DoorBangOpen", 2, "DoorBang");
}

void DoorBang(string &in strTimer)
{
if (strTimer == "DoorBangOpen") {
AddPropForce("doorname", 0, 0, 500, "local"); // you'll need to play around with the force value / direction
AddTimer("DoorBangClose", 1, "DoorBang");
}
else if (strTimer == "DoorBangClose") {
AddPropForce("doorname", 0, 0, -1000, "local"); // you'll need to play around with the force value / direction, note reversal of direction from above
AddTimer("DoorBangOpen", 2, "DoorBang");
}
}

For point 2, you want the piano to be playing, but to stop playing when the player looks at it. Then you want the piano to start playing again when the player looks away? and stop again when they look back? etc etc...

(This post was last modified: 02-18-2013, 02:18 PM by Adrianis.)
02-18-2013, 02:17 PM
Find




Users browsing this thread: 1 Guest(s)