Asaratha
Junior Member
Posts: 14
Threads: 5
Joined: Jul 2011
Reputation:
0
|
"Unexpected end of file"
Hey guys, I got this and have been trying to find where I didn't close it off. I've been searching for some time now, and would appereciate some help. void OnStart()
{
SetEntityPlayerInteractCallback("bone_saw_1", "ArmRemoval1", true);
}
void ArmRemoval1(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("lookat", 10.0f, 10.0f, "");
SetMessage("Messages", "Popup9", 0);
AddTimer("", 2.0f, "ArmRemoval2");
}
void ArmRemoval2(string &in asTimer)
{
SetMessage("Messages", "Popup10", 0);
FadeOut(2);
AddTimer("", 2.0f, "ArmRemoval3");
}
void ArmRemoval3(string &in asTimer)
{
SetMessage("Messages", "Popup11", 0);
AddTimer("", 1.0f, "ArmRemoval4");
}
void ArmRemoval4(string &in asTimer)
{
SetMessage("Messages", "Popup12", 0);
AddTimer("", 1.0f, "ArmRemoval5");
}
void ArmRemoval5(string &in asTimer)
{
SetMessage("Message, "Popup13", 0);
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval6");
}
void ArmRemoval6(string &in asTimer)
{
PlaySoundAtentity("", "general_water_drip.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval7");
}
void ArmRemoval7(string &in asTimer)
{
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval8");
}
void ArmRemoval8(string &in asTimer)
{
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval9");
}
void ArmRemoval9(string &in asTimer)
{
PlaySoundAtEntity("", "impact_organic_high.snt", "Player", 0, false);
PlaySoundAtEntity("", "player_falldamage_med.snt", "Player", 0, false);
SetPlayerCrouching(true);
AddTimer("", 3.0f, "ArmRemoval10final");
}
void ArmRemoval10final(string &in asTimer)
{
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
FadePlayerRollTo(50, 220, 220);
FadeRadialBlurTo(0.15, 2);
AddTimer("", 3.0f, "recover");
}
void recover(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}
Any help is appreciated, getting kinda flustered that I can't find where I went wrong.
(This post was last modified: 01-20-2013, 09:10 PM by Asaratha.)
|
|
01-20-2013, 08:50 PM |
|
i3670
Posting Freak
Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation:
36
|
RE: "Unexpected end of file"
void ArmRemoval5(string &in asTimer)
{
SetMessage("Message, "Popup13", 0);
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval6");
}
|
|
01-20-2013, 09:06 PM |
|
Asaratha
Junior Member
Posts: 14
Threads: 5
Joined: Jul 2011
Reputation:
0
|
RE: "Unexpected end of file"
(01-20-2013, 09:06 PM)i3670 Wrote: void ArmRemoval5(string &in asTimer)
{
SetMessage("Message, "Popup13", 0);
PlaySoundAtEntity("", "sanity_flick.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("", 1.0f, "ArmRemoval6");
}
Damn, thanks bro. Dunno how I looked that over.
|
|
01-20-2013, 09:09 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: "Unexpected end of file"
Whoa, this is the thread number 20.000 of this dear forum! PARTY HARD!
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
01-20-2013, 09:36 PM |
|
|