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
Scripting Error
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#4
RE: Scripting Error

(08-29-2012, 04:55 PM)Statyk Wrote: void DoCaveIn(string &in entity, int level_state)
{
if(level_state == 1);
{
SetEntityActive("cave_in_1", "cave_in_2", "cave_in_3", true);
FadeEnemyToSmoke("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
}


(50, 44) was leading to the end of "level" in the syntax. I noticed you have a space, but in the parameters, you have an underscore. Try adding the underscore.
That fixed it, (thanks a bunch!)but now I'm getting a different error.
[Image: oJD8W.png]
Since I'm relatively new to AngelScript, I'm not sure what this means. If I'm correct, the integers in the parentheses mean the line of code and the character of code.

[quote="SmokeMelvin"]
Quote:void DoCaveIn(string &in entity, int level state)
{
if(level_state == 1);
{
SetEntityActive("cave_in_1", "cave_in_2", "cave_in_3", true);
FadeEnemyToSmoke("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
}

}


Try to delete this (copy it to another notepad) and run Amnesia again, does this solve the error problem?
Also, this did not fix the error.

If I get an answer and I'm still getting errors, I'll stop pestering you and just try it again.

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
(This post was last modified: 08-29-2012, 05:35 PM by Zaffre.)
08-29-2012, 05:30 PM
Find


Messages In This Thread
Scripting Error - by Zaffre - 08-29-2012, 04:45 PM
RE: Scripting Error - by Melvin - 08-29-2012, 04:49 PM
RE: Scripting Error - by Statyk - 08-29-2012, 04:55 PM
RE: Scripting Error - by Zaffre - 08-29-2012, 05:30 PM
RE: Scripting Error - by Steve - 08-29-2012, 06:04 PM
RE: Scripting Error - by Statyk - 08-29-2012, 06:09 PM
RE: Scripting Error - by Zaffre - 08-29-2012, 06:28 PM
RE: Scripting Error - by Statyk - 08-29-2012, 07:32 PM



Users browsing this thread: 1 Guest(s)