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
Piano Scare-script
Wickedwrath Offline
Junior Member

Posts: 13
Threads: 3
Joined: Oct 2011
Reputation: 0
#1
Question  Piano Scare-script

Hello! I'm about new with Scripting, and wonder if there is possible by any chance to use the "Piano Scare-script" from the level "Archives" for example, or how to make one? As I said, I'm about new with Scripting, and have read on how stuffs works carefully on http://wiki.frictionalgames.com/hpl2/amn..._functions. But I'm not sure how to do it, so if someone could help me out, I woul'd appreciate it! Rolleyes


(This post was last modified: 10-20-2011, 05:25 PM by Wickedwrath.)
10-19-2011, 07:30 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: Piano Scare-script

For start you should watch my tutorial basics of the basic, maybe it gives u good scripting understanding.

The Interrogation
Chapter 1

My tutorials
10-19-2011, 07:39 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Piano Scare-script

I'm not exactly sure what you mean "Piano scare" Im guessing it just makes a noise, so i would do this:


void OnStart()

{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "PianoScare" , true , 1);
}


void PianoScare(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Piano sound, use with quotations aswell", "Player", 0.5f, false);
}

10-20-2011, 12:17 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: Piano Scare-script

I made already tutorial about it and he got help from there Smile

http://www.youtube.com/watch?v=EhUjbK_vEhM

The Interrogation
Chapter 1

My tutorials
10-20-2011, 12:19 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Piano Scare-script

(10-20-2011, 12:19 PM)Elven Wrote: I made already tutorial about it and he got help from there Smile

http://www.youtube.com/watch?v=EhUjbK_vEhM
Oh ok lol, he didn't respond so i was just helping Smile

10-20-2011, 12:23 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#6
RE: Piano Scare-script

No problem Smile. Helping is always good. I just let others know that there is solution to it Smile.

The Interrogation
Chapter 1

My tutorials
10-20-2011, 12:44 PM
Find




Users browsing this thread: 1 Guest(s)