Port's Viridian RPG. Plus the Blockhead Bash mod I'm making.If you're put into observer mode and use the brick moving keys, it gives a error in the %plvec = OrbShift_getthisdirection($OrbShift::Player.getforwardvector()); lines because $OrbShift::Player does not exist. It does not matter that you have no ghost brick because you can still call the function and make the animations play on your player.
Alright here is my fix:
$OrbShift::RequestTimeout = 30000;
function clientCmdOrbShift()
{
if(getSimTime() - $OrbShift::LastRequest > $OrbShift::RequestTimeout)
{
messageboxyesno("Request from Server", "This server would like you to disable your OrbShift mod.\nDisable it now?", "deactivatepackage(orbshifting);", "");
$OrbShift::LastRequest = getSimTime();
}
}
and
if(%x && serverconnection.getcontrolobject().getclassname() $= "camera" && isObject($OrbShift::Player))
So you should probably call commandtoclient(%client, 'OrbShift'); the first time they go into observer mode because I think blockland clears all message box guis on spawning.