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
problem with scare script
zergling50 Offline
Member

Posts: 74
Threads: 9
Joined: Jul 2012
Reputation: 1
#15
RE: problem with scare script

(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.
(This post was last modified: 04-07-2013, 09:04 PM by zergling50.)
04-07-2013, 08:37 PM
Find


Messages In This Thread
problem with scare script - by zergling50 - 01-06-2013, 10:18 PM
RE: problem with scare script - by Rapture - 01-06-2013, 10:33 PM
RE: problem with scare script - by zergling50 - 01-08-2013, 01:34 AM
RE: problem with scare script - by Damascus - 01-07-2013, 03:10 AM
RE: problem with scare script - by Victor - 01-08-2013, 04:32 PM
RE: problem with scare script - by Damascus - 01-08-2013, 08:14 PM
RE: problem with scare script - by zergling50 - 04-06-2013, 08:16 PM
RE: problem with scare script - by Kreekakon - 04-06-2013, 08:29 PM
RE: problem with scare script - by zergling50 - 04-06-2013, 09:01 PM
RE: problem with scare script - by NaxEla - 04-07-2013, 12:58 AM
RE: problem with scare script - by Tiger - 04-07-2013, 01:56 AM
RE: problem with scare script - by NaxEla - 04-07-2013, 04:53 AM
RE: problem with scare script - by Tiger - 04-07-2013, 04:43 PM
RE: problem with scare script - by zergling50 - 04-07-2013, 08:37 PM
RE: problem with scare script - by zergling50 - 04-07-2013, 09:42 PM
RE: problem with scare script - by noovra - 04-08-2013, 02:05 AM
RE: problem with scare script - by Linus Ågren - 04-08-2013, 09:00 AM
RE: problem with scare script - by noovra - 04-08-2013, 01:03 PM
RE: problem with scare script - by zergling50 - 04-10-2013, 11:46 PM
RE: problem with scare script - by NaxEla - 04-11-2013, 12:36 AM
RE: problem with scare script - by zergling50 - 06-11-2013, 08:22 PM
RE: problem with scare script - by GrAVit - 06-12-2013, 08:16 AM
RE: problem with scare script - by Daemian - 06-12-2013, 12:19 PM
RE: problem with scare script - by zergling50 - 06-13-2013, 08:13 PM



Users browsing this thread: 1 Guest(s)