Hey all, thanks for the input - much appreciated
@OldPMan indeed the problem is with "plrvisible" not triggering. If I increase the distance to 400 it works but only if player is between about 315ish - 370ish - tends to be a bit random - but any closer to the ship and "plrvisible" reverts to zero.
@Belidos, yeah I did notice that with door script. For me it never prompts to close.
Also I tried adding some code from Tazman's "opengate" script as below, but doesn't make any difference.
PlayerDX = g_Entity[e]['x'] - g_PlayerPosX;
PlayerDY = g_Entity[e]['y'] - g_PlayerPosY;
PlayerDZ = g_Entity[e]['z'] - g_PlayerPosZ;
PlayerDist = math.sqrt(math.abs(PlayerDX*PlayerDX)+math.abs(PlayerDY*PlayerDY)+math.abs(PlayerDZ*PlayerDZ));
Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.