flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: [SCRIPT] ANOTHER ERROR UNEXPECTED END OF FILE!
Use this script:
Quote:void OnStart()
{
AddEntityCollideCallback("Player", "musicareabasement", "MusicPlay", true, 0);
AddEntityCollideCallback("Player", "basementdoorsmash", "func_slam", true, 1);
PlayMusic("Music_01.ogg" , true , 10 , 2.0f , 0 , true);
}
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);
}
void func_slam(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
StartEffectEmotionFlash("basementdoortext","dooropen","00_laugh.snt")
}
As for the liquid coming to your knees. Unfortunately there is not easy way of doing it. BUT, Statyk made a awesome tutorial on how to do : http://www.frictionalgames.com/forum/thr...sing+water
(01-11-2012, 02:23 PM)Tripication Wrote: This is how it should look
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 Two noises will always play; they won't conflict.
(This post was last modified: 01-11-2012, 02:25 PM by flamez3.)
|
|