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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me with scripts
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#11
RE: Help me with scripts

(08-21-2011, 12:06 AM)JetlinerX Wrote:
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "OnCollide", true, 1);
}
void OnCollide(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}
That code will play "react_scare" when the "Player" walks across "SoundArea_1" so long as that area is listed as active in the editor.

Thank you man !!
08-21-2011, 01:02 AM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#12
RE: Help me with scripts

No problem! Ask away Big Grin

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-21-2011, 01:08 AM
Website Find
Phoroneus Offline
Member

Posts: 141
Threads: 12
Joined: Feb 2011
Reputation: 0
#13
RE: Help me with scripts

(08-20-2011, 03:55 PM)darkside Wrote: "If it doesnt feel creepy to you, it wont feel much more creepy to the player. " - It will be never creepy for you (for me, at least) because you know what's going to happen. Plus the testing is repetetive so it gets boring easily.

My suggestion is to never give up. There will be lot's of errors and testing but in the end, it'll all go well (if you're doin it rite Smile).

Edit: typo ... imma grammar nazi.

It is entirely possible to make a map creepy, even if you know what is going to happen. In fact, if it isn't either creepy or tense, even to you, you can do better. Unnerving yourself is half the fun of creating custom stories.

[Image: at_9365860.png]

Follow Harvest.
08-21-2011, 04:46 AM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#14
RE: Help me with scripts

And thats a wrap folks! Great way to put it.

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-21-2011, 08:03 AM
Website Find




Users browsing this thread: 1 Guest(s)