Sign in to follow this  
Followers 0

Annoying scripting error

I am trying to make this script activate only if the game is in deathmatch mode.

here's a test script I was trying to do, but Eternity keeps crashing on me even if this script is not activated, it will start up after I erase this script entirely. How can I get the gamemode() function to work right?



example script:



script 2
{
if(gamemode() == 0)
{
message("single player on");
}
elseif(gamemode() == 1)
{
message("coop on");
}
elseif(gamemode() == 2)
{
message("deathmatch on");
}

}startscript(2);


can anyone find out why this keeps causing the port to crash?

Share this post


Link to post

The if/elseif construct is known to be buggy. The present FS system is very messy and just about impossible to improve or fix, so it is in the process of being completely replaced.

By the way, DOOM Legacy is known to have this same problem.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0