I assume you just added Destroy(410) between the main function and the end in disappear.lua like so?
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function dissapear_init(e)
end
function dissapear_main(e)
Destroy(410)
end
If so then you haven't added anything to tell the engine that you have entered the zone, you have just told it to destroy the entity as soon as the script starts to run.
You need to wrap the command in an if statement that tells the engine "if the player walks into the zone then...", also personally i'd use Hide(e) rather than Destroy(e) because then you can use Spawn(e) at a later date to bring it back if you want to, with Destory(e) (and I may be wrong so if I am somebody please let me know) it's gone for good.
LUA looks daunting but it's easier than you think, a lot of the basic lua scripting is very logical, you just need to know the commands. I find it helps to type out step by step what you want to do, for this it would be...
If the player enters the zone then hide the zombie
that would translate to..
if g_Entity[e]['plrinzone']==1 then
Hide(410)
Very simple yes? It's gets a lot trickier when you inolve more complicated actions like math etc. But for the basics it's just a matter of laying it out step by step and knowing the commands. For a complete list of LUA commands available there's a file in your scriptbank called global.lua, this lists all of the LUA commands.
Here's the script I would use to do what you want:
hideentity.lua
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function hideentity_init(e)
end
function hideentity_main(e)
if g_Entity[e]['plrinzone']==1 then
Hide(410)
end
end
i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.