switch(friendlyFire)
{
case 0:
self printGlobalPlayerAction("No Friendly Fire");
break;
case 1:
self printGlobalPlayerAction("Friendly Fire");
break;
case 2:
self printGlobalPlayerAction("Reflected Friendly Fire");
break;
case 3:
self printGlobalPlayerAction("Shared Friendly Fire");
break;
}
if(friendlyFire == 0)
{
self printGlobalPlayerAction("No Friendly Fire");
}
else if(friendlyFire == 1)
{
self printGlobalPlayerAction("Friendly Fire");
}
else if(friendlyFire == 2)
{
self printGlobalPlayerAction("Reflected Friendly Fire");
}
else if(friendlyFire == 3)
{
self printGlobalPlayerAction("Shared Friendly Fire");
}
switch(friendlyFire)
{
case 0:
self printGlobalPlayerAction("No Friendly Fire");
break;
case 1:
self printGlobalPlayerAction("Friendly Fire");
break;
case 2:
self printGlobalPlayerAction("Reflected Friendly Fire");
break;
case 3:
self printGlobalPlayerAction("Shared Friendly Fire");
break;
}
if(friendlyFire == 0)
{
self printGlobalPlayerAction("No Friendly Fire");
}
else if(friendlyFire == 1)
{
self printGlobalPlayerAction("Friendly Fire");
}
else if(friendlyFire == 2)
{
self printGlobalPlayerAction("Reflected Friendly Fire");
}
else if(friendlyFire == 3)
{
self printGlobalPlayerAction("Shared Friendly Fire");
}
friendlyFire = level.friendlyFire; // Get the current value
friendlyFire++; // Increment it since this is meant to be a toggle through values
// Reset the value if it is out of bounds
if(friendlyFire == 4)
{
friendlyFire = 0;
}
// Place conditions here in order to print the state. I would like to use switch case but it's not working correctly
switch(friendlyFire)
{
case 0:
self printGlobalPlayerAction("No Friendly Fire");
break;
case 1:
self printGlobalPlayerAction("Friendly Fire");
break;
case 2:
self printGlobalPlayerAction("Reflected Friendly Fire");
break;
case 3:
self printGlobalPlayerAction("Shared Friendly Fire");
break;
}
if(friendlyFire == 0)
{
self printGlobalPlayerAction("No Friendly Fire");
}
else if(friendlyFire == 1)
{
self printGlobalPlayerAction("Friendly Fire");
}
else if(friendlyFire == 2)
{
self printGlobalPlayerAction("Reflected Friendly Fire");
}
else if(friendlyFire == 3)
{
self printGlobalPlayerAction("Shared Friendly Fire");
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.