I have imported the 00_Grav_Switch off this site into my level and when i hosted a serial connection i noticed that only the host gets the results of it here is the code:
symbols
message activated
flex number1 local
thing console
sound gravalarm
end
# ========================================================================================
code
activated:
number1 = GetGravity();
PlaySoundGlobal(gravalarm, 1.0, 0.0, 0x10000);
if(number1 == 1)
{
print("Gravity Level: normal");
SetGravity(4.0);
number1 == 4;
return;
}
if(number1 == 4)
{
print("Gravity Level: high");
SetGravity(7.0);
number1 == 7;
return;
}
if(number1 == 7)
{
print("Gravity Level: low");
SetGravity(1.0);
number1 == 1;
return;
}
return;
end
symbols
message activated
flex number1 local
thing console
sound gravalarm
end
# ========================================================================================
code
activated:
number1 = GetGravity();
PlaySoundGlobal(gravalarm, 1.0, 0.0, 0x10000);
if(number1 == 1)
{
print("Gravity Level: normal");
SetGravity(4.0);
number1 == 4;
return;
}
if(number1 == 4)
{
print("Gravity Level: high");
SetGravity(7.0);
number1 == 7;
return;
}
if(number1 == 7)
{
print("Gravity Level: low");
SetGravity(1.0);
number1 == 1;
return;
}
return;
end