how do i add scripted sound as i enter a certain area i can use scripted sound on like a door but how do i pt just to say in the middle of a dark room
AddEntityCollideCallback("Player", "DarkRoomScript_1", "ScarySound", true, 1);
void ScarySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "SOUNDNAME.snt", "EntityPlayedOn", 0, false);
GiveSanityDamage(5.0f);
}
(04-01-2012, 03:26 AM)Xanthos Wrote: [ -> ]AddEntityCollideCallback("Player", "DarkRoomScript_1", "ScarySound", true, 1);
void ScarySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "SOUNDNAME.snt", "EntityPlayedOn", 0, false);
GiveSanityDamage(5.0f);
}
wow thanks it works but i had to delete the sanitydamage thing it caused my game to crash but the sound works thanks heeps
GiveSanityDamage(5.0f, true);
oops