(04-07-2013, 12:58 AM)NaxEla Wrote: In these two lines PlaySoundAtEntity("", "insanity_baby_cry_custom", asEntity, 0.0f, false);
PlaySoundAtEntity("", "insanity_imageflash01_custom", asEntity, 0.0f, false);
change asEntity with the name of the entity that the sound plays at (inside quotations "").
Thanks guys im almost there, but the new error its giving me is
main (58,1) : ERR : Expected expression value
EDIT: heres new code
void CorpseDoorscare(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
SetEntityActive("corpse_male_1", true);
AddPropImpulse("mansion_6", 20, 0, 0, "world");
StartPlayerLookAt("corpse_male_1", 2, 3, "StopLook2");
PlaySoundAtEntity("", "insanity_baby_cry_custom", "Player", 0.0f, false);
PlaySoundAtEntity("", "insanity_imageflash01_custom", "Player", 0.0f, false);
}
EDIT EDIT:
Nevermind that was an incredibly stupid mistake on my part. it launches fine now but the scare doesnt activate still. not sure why. If you need me to post my full code again I can.