Quote: " I have found several scripts here on the boards that work of but I need one that is entity based. If it's in a trigerzone the countdown stops if player is to far out of zone!"
ShN33Ky,
if there is a trigger zone one that works you could try to just replace the
if g_Entity[e]['plrinzone'] references with
if PlayerDist < 2000 -- change this value to suit your needs
or if PlayerDist > 2000
but you will need to place PlayerDist = GetPlayerDistance(e) at the start of the script.
here's a quick example.
I could write one for you, but i'm not sure what you want, if you give me some more details in point form on how it works it would help.
like how the countdown starts and stops, etc
player in zone example
function plrinzone_main(e)
if g_Entity[e]['plrinzone']==1 then
PlaySound(e,0)
Destroy(e)
ActivateIfUsed(e)
end
end
converted to player distance
function plrnear_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist <= 1000 then
PlaySound(e,0)
--Destroy(e)
ActivateIfUsed(e)
end
if PlayerDist > 1000 then
PlaySound(e,1)
--Destroy(e)
--ActivateIfUsed(e)
end
end
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 8.1 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)