Hide NPCs until they come to the foreground or their task is completed

[#69271042]