The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 issues
evertuy Offline
Junior Member

Posts: 46
Threads: 9
Joined: Mar 2011
Reputation: 0
#1
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
Find


Messages In This Thread
script issues - by evertuy - 05-15-2011, 02:12 AM
RE: script issues - by Kyle - 05-15-2011, 02:19 AM
RE: script issues [sloved lol] - by evertuy - 05-15-2011, 02:39 AM
RE: script issues [sloved lol] - by Kyle - 05-15-2011, 02:58 AM
RE: script issues - by ferryadams10 - 05-15-2011, 08:42 AM



Users browsing this thread: 1 Guest(s)