Reply to thread

heres a compact version that works for me


[CODE]

ZombieCount()

{

Zombies=getAIArray("axis");

return Zombies.size-1;

}

drawZombiesCounter()

{

    level endon("disconnect");

    level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);

    level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");

    level.zombiesCountDisplay setSafeText("Zombies: " + ZombieCount());

  

  

    oldZombiesCount = ZombieCount();

    while(true)

    {

        if(oldZombiesCount !=  ZombieCount())

        {

            level.zombiesCountDisplay setSafeText("Zombies: " + ZombieCount());

        }

        wait 0.05;

    }

}

[/CODE]


Top