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
Scare Sound?
zergling50 Offline
Member

Posts: 74
Threads: 9
Joined: Jul 2012
Reputation: 1
#11
RE: Scare Sound?

(07-18-2012, 11:51 PM)zergling50 Wrote:
(07-18-2012, 10:22 PM)andyrockin123 Wrote: You can use a .ogg file. but it has to have an accompanying .snt file. I'd suggest (for troubleshooting purposes) to only use the name of the .snt file and not the individual .ogg names.

void ScareNoise1(string &in asEntity)
{
PlaySoundAtEntity("", "scare_baby_cry", "Player", 0, false);
PlaySoundAtEntity("", "scare_steps_big", "Player", 0, false);
PlaySoundAtEntity("", "scare_tingeling_rev2", "Player", 0, false);
}
It works now, but whats the point in having an ogg file if you cant use it? I prefer some of the ogg files but ill hav to settle with the snt.
Everything works now guys thanks! just one little problem and then I should be good. My scare was supposed to have noises play as a closet bursts open revealing another note emanating a red light after you read a note by a bedside. Everything works except I want the light to turn off once the note its in is read, and I want the note to not be there until you read the other note. When I play the game, despite unchecking the active box for the light, the light remains on when you enter the room and never goes off. Second, the note isnt there, but when you read the trigge note, the note appears but its invisible. If you look in the right spot an outline appears of a note and you can pick it up, but you cant see it? how can I fix these. I unchecked both their active boxes. Heres my code:
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
void ActivateMonster(string &in asItem)
{
}
void KeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 0.0f, false);
RemoveItem(asItem);
}
void ScareNoise1(string &in asEntity)
{
PlaySoundAtEntity("", "scare_steps_big", "Player", 0, false);
PlaySoundAtEntity("", "insanity_baby_cry", "Player", 0, false);
PlaySoundAtEntity("", "insanity_imageflash01", "Player", 0, false);
PlaySoundAtEntity("", "insanity_whisper", "Player", 0, false);
PlaySoundAtEntity("", "scare_male_terrified", "Player", 0, false);
PlaySoundAtEntity("", "scare_door_slam", "Player", 0, false);
AddPropImpulse("cabinet_nice_3", 0, 0, 45, "world");
SetEntityActive("note_paper01_4", true);
SetEntityActive("SpotLight_3", true);
}
void DisableLight(string &in asEntity)
{
SetEntityActive("SpotLight_3", false);
}
07-19-2012, 12:25 AM
Find


Messages In This Thread
Scare Sound? - by zergling50 - 07-18-2012, 09:12 PM
RE: Scare Sound? - by Kazakarumariou - 07-18-2012, 09:20 PM
RE: Scare Sound? - by zergling50 - 07-18-2012, 10:03 PM
RE: Scare Sound? - by Adny - 07-18-2012, 10:14 PM
RE: Scare Sound? - by zergling50 - 07-18-2012, 10:16 PM
RE: Scare Sound? - by Kazakarumariou - 07-18-2012, 11:16 PM
RE: Scare Sound? - by Adny - 07-18-2012, 11:34 PM
RE: Scare Sound? - by Adny - 07-18-2012, 10:22 PM
RE: Scare Sound? - by zergling50 - 07-18-2012, 11:51 PM
RE: Scare Sound? - by Adny - 07-19-2012, 12:10 AM
RE: Scare Sound? - by zergling50 - 07-19-2012, 12:25 AM
RE: Scare Sound? - by Adny - 07-19-2012, 12:31 AM
RE: Scare Sound? - by zergling50 - 07-19-2012, 12:40 AM
RE: Scare Sound? - by Streetboat - 07-19-2012, 12:32 AM
RE: Scare Sound? - by Adny - 07-19-2012, 12:45 AM
RE: Scare Sound? - by zergling50 - 07-19-2012, 01:05 AM
RE: Scare Sound? - by zergling50 - 07-19-2012, 04:47 PM
RE: Scare Sound? - by zergling50 - 07-20-2012, 08:07 PM
RE: Scare Sound? - by Kazakarumariou - 07-20-2012, 08:38 PM
RE: Scare Sound? - by zergling50 - 07-20-2012, 10:04 PM
RE: Scare Sound? - by Kazakarumariou - 07-21-2012, 07:23 PM
RE: Scare Sound? - by zergling50 - 07-22-2012, 05:06 PM



Users browsing this thread: 1 Guest(s)