The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Does someone know any good scares?
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#1
Does someone know any good scares?

The title explains a lot but still...
If you know any good scares please post this here:



1. What it does.

2. how it works.

3. if it requires a special kind of script.

4. if it contains any effects, (I.E. particles) if yes than post them as well.




(I'll go ahead and post the first one)


This scare is based on the one where a vase (seems to) randomly break, basically what it does is make it look like the glass in front a painting's frame bursts.

now for how it works:

1. You put a display with the legs through a wall so you only see the top and then put a painting in there then resize the display to fit the painting to make it look more realistic.

2. Then you put an area in front of the painting (make sure it is about 3 feet in front of the painting so the player walks against it when walking towards the painting(if you want a particle effect with it you have to put another area right against the "frame".))

3. you have to use this script:

void OnStart()

{

AddEntityCollideCallback("Player", "AREA", "FUNCTION", true, 1);

}





void FUNCTION(string &in asParent, string &in asChild, int alState)

{

SetPropHealth("DISPLAY", 0);

}







void OnEnter()

{

}





void OnLeave()

{

}
4. Optionally do this to make it even scarier:


void OnStart()

{

AddEntityCollideCallback("Player", "AREA", "FUNCTION", true, 1);

}

void Explode(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("DISPLAY", 0);
PlaySoundAtEntity("", "SCARESOUND", "AREA", 0, true);
CreateParticleSystemAtEntity("", "PARTICLE", "AREA2", false);
AddPlayerSanity(-30);
}
(Keep in mind that "AREA2" should be against (or maybe even a little through) the glass of the "frame")In this case I made the "AddPlayerSanity" -30 which tells the game that when the player passes the Area his/her sanity will be reduced by 30.
but it is more fun to completely kill the players sanity (say -100) and make the player do something in the area in order to restore his/her sanity.


I hope this works out for everyone (if not pm me, I'll be more than glad to help) and if anyone else knows a good way to scare me or anyone else out there, be sure to post it here. Big Grin

~The Hulk is always greener on the other side~
(This post was last modified: 07-03-2012, 08:28 AM by Magasztos.)
07-02-2012, 04:21 PM
Find


Messages In This Thread
Does someone know any good scares? - by Magasztos - 07-02-2012, 04:21 PM



Users browsing this thread: 1 Guest(s)