evertuy
Junior Member
Posts: 46
Threads: 9
Joined: Mar 2011
Reputation:
0
|
script issues
What's wrong?
Unexpected end of file at "70,1"
Ye
Quote:////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "bricksfall", "bricksactive", true, 0);
AddEntityCollideCallback("Player", "wind_open", "blowdoor", true, 0);
AddEntityCollideCallback("Player", "lantern_scare", "lanternon", true, 0);
}
void bricksactive(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("notice.snt", 4);
AddTimer("", 1.5f, "bricksactive_2");
}
void bricksactive_2(string &in asTimer)
{
SetEntityActive("brick02_3", true);
SetEntityActive("brick02_4", true);
SetEntityActive("brick02_5", true);
)
void blowdoor(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("castle_2", 0, 0, -20.0f, "world");
SetSwingDoorClosed("castle_2", false, true);
SetSwingDoorDisableAutoClose("castle_2", true);
PlaySoundAtEntity("", "scare_wind.snt", "Player", 0, false);
PlaySoundAtEntity("", "joint_squeaky_door.snt", "Player", 0, false);
}
void lanternon(string &in asParent, string &in asChild, int alState)
{
SetLanternLitCallback("scarenoise");
}
void scarenoise(bool abLit)
{
PlayGuiSound("guardian_distant3.snt", 4);
PlayGuiSound("react_pant2", 2);
AddTimer("", 4.0f, "pant_2");
AddTimer("", 9.0f, "pant_3");
StartScreenShake(0.05, 3, 0, 1);
FadeSepiaColorTo(0, 1);
}
void pant_2(string &in asTimer)
{
PlayGuiSound("react_pant1", 2);
}
void pant_2(string &in asTimer)
{
PlayGuiSound("react_pant3", 2);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Sucky sucky 5 grand?
|
|
05-15-2011, 02:12 AM |
|
Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
RE: script issues
Line 21 is ")" instead of "}"
You should use Notepad++, it's easier to use and to find errors.
(This post was last modified: 05-15-2011, 03:41 PM by Kyle.)
|
|
05-15-2011, 02:19 AM |
|
evertuy
Junior Member
Posts: 46
Threads: 9
Joined: Mar 2011
Reputation:
0
|
RE: script issues [sloved lol]
I am using it, I wasn't paying to the red outline on the closing bracket though thanks.
Sucky sucky 5 grand?
(This post was last modified: 05-15-2011, 02:39 AM by evertuy.)
|
|
05-15-2011, 02:39 AM |
|
Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
RE: script issues [sloved lol]
(05-15-2011, 02:39 AM)evertuy Wrote: I am using it, I wasn't paying to the red outline on the closing bracket though thanks.
You're welcome.
|
|
05-15-2011, 02:58 AM |
|
ferryadams10
Senior Member
Posts: 288
Threads: 40
Joined: Apr 2011
Reputation:
19
|
RE: script issues
void bricksactive_2(string &in asTimer)
{
SetEntityActive("brick02_3", true);
SetEntityActive("brick02_4", true);
SetEntityActive("brick02_5", true);
)<----- can't you've watched a bit better? haha
Got a nice sofa
Please come and have a seat for a while
|
|
05-15-2011, 08:42 AM |
|
|