not sure why u have
Quote: "if vlh_PlayerDist (e) <=50 then"
it should be
Quote: "if PlayerDist < 50 then"
like in the default scripts
also make sure you are naming the scripts correctly (file name also needs to be "script" in this case
the full script will look like this
function script_main(e)
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));
if PlayerDist < 51 then
Prompt("Hello All");
end
end
life's one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11