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
[SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE!
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#10
RE: [SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE!

(01-11-2012, 02:28 PM)heyitsrobert97 Wrote:
(01-11-2012, 02:23 PM)Tripication Wrote: void OnStart()

{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 0);
AddEntityCollideCallback("Player", "basementdoorsmash", "func_slam", true, 1);

}

void MusicPlay(string &in asParent, string &in asChild, int alState)
{
PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("basementdoor", 0.0f);
SetPropHealth("basementcorpse:, 0.0f);
PlaySoundAtEntity("", "scare_human_noises.snt", "Player", 0, false);
StartEffectEmotionFlash("basementdoortext", "dooropen", "00_laugh.snt")
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
SetEntityActive("basementwater", true);
}



The two in red will probably conflict and it will probably play ONLY whatever the top one is...What is the top one anyway
the basementcorpse is a body standing in front of the door and should disappear when you enter the doorsmash area then the door will smash play teh scary_human_noises.snt then the text should show up and the sound play so that it should go
Walk into door script area
Corpse disappears,and door breaks
Noises play and text shows at the same time
then Water fills room

Previous post, listen to Flames3, im just too tired and too lost in this thread and i'm still new to modding.

Good luck with the rest of the mod tho

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-11-2012, 02:35 PM by Tripication.)
01-11-2012, 02:34 PM
Find


Messages In This Thread
RE: [SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE! - by Tripication - 01-11-2012, 02:34 PM



Users browsing this thread: 1 Guest(s)