HOTT Signal Shared Box Issue

Jaykob8

Member
I have this asset (<kuid2:9999:61500:4>) and I'm getting VE220 syntax errors on the script saying:

illegal types for operand ==, line 216
invalid if expression, line 218
illegal types for operand ==, line 231
invalid if expression, line 233

if (function == "LocoCTSOn")
{
int i;
for (i=0; i < SharedVars.ctsLocoList.size();i++)
{
if (SharedVars.ctsLocoList == Str.ToInt(variable[0])) //error here
break;
}

SharedVars.ctsLocoList = Str.ToInt(variable[0]);
TrainInit((cast<Vehicle> Router.GetGameObject(SharedVars.ctsLocoList)).GetMyTrain());

return ret;
}

if (function == "LocoCTSOff")
{
int i;
for (i=0; i < SharedVars.ctsLocoList.size();i++)
{
if (SharedVars.ctsLocoList == Str.ToInt(variable[0])) //error here
SharedVars.ctsLocoList[i,] = SharedVars.ctsLocoList[i+1,];
}
CTSAbort();

return ret;
}

Above is the code that I extracted, and I showcased where the error is in double slashes. Is there any way to fix this?
 
Hi!

There is an updated version of it, check it out here:

Best regards,
M
 
Back
Top