Frictional Games Forum (read-only)

Full Version: How do I make jump scares?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Title says it all. I know how to make entities active when you enter/exit an area or pick something up. But the one thing I want to know is how do I add the sound? You know, like the loud scream or yell when a naked dead guy comes flying at you.
To add sound use this:
PlaySoundAtEntity("", "21_screams.snt", "THE ENTITYS NAME", 0, false);
(02-01-2012, 07:49 PM)Datguy5 Wrote: [ -> ]To add sound use this:
PlaySoundAtEntity("", "21_screams.snt", "THE ENTITYS NAME", 0, false);
Thanks!


(02-01-2012, 08:09 PM)Imevil23 Wrote: [ -> ]
(02-01-2012, 07:49 PM)Datguy5 Wrote: [ -> ]To add sound use this:
PlaySoundAtEntity("", "21_screams.snt", "THE ENTITYS NAME", 0, false);
Thanks!
Np bro!


nevermind...
(02-01-2012, 07:46 PM)Imevil23 Wrote: [ -> ]Title says it all. I know how to make entities active when you enter/exit an area or pick something up. But the one thing I want to know is how do I add the sound? You know, like the loud scream or yell when a naked dead guy comes flying at you.

(02-01-2012, 07:46 PM)Imevil23 Wrote: [ -> ]Title says it all. I know how to make entities active when you enter/exit an area or pick something up. But the one thing I want to know is how do I add the sound? You know, like the loud scream or yell when a naked dead guy comes flying at you.
(08-16-2012, 01:32 PM)bassim Wrote: [ -> ]
(02-01-2012, 07:46 PM)Imevil23 Wrote: [ -> ]Title says it all. I know how to make entities active when you enter/exit an area or pick something up. But the one thing I want to know is how do I add the sound? You know, like the loud scream or yell when a naked dead guy comes flying at you.
You just have to look around at:
http://wiki.frictionalgames.com/hpl2/amn...en_effects
and you can probably find it.

If you're lazy or can't find, the function is called "SetEntityActive("name of entity", "false/true(deactivate/activate)");" But it really is important to be tenacious when you're scripting; or else it's really gonna be an uphill battle. :/
. . .
"Brace yourselves; another shitty map is coming our way."