well so far I've tried putting them on a zone 2 ways with no result, I'm also unsure what g_gameloop_StartHealth = 0 does is that when to start or stop? anyway so far no go :/
1/
function regenzone_init(e)
require "scriptbank\\gameloop"
end
function regenzone_main(e)
if g_Entity[e]['plrinzone']==1 then
StartHealth = 0
RegenRate = 3
RegenSpeed = 5
RegenDelay = 1
end
end
2/
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
function regenzone_init(e)
require "scriptbank\\gameloop"
end
function regenzone_main(e)
if g_Entity[e]['plrinzone']==1 then
g_gameloop_StartHealth = 0
g_gameloop_RegenRate = 3
g_gameloop_RegenSpeed = 5
g_gameloop_RegenDelay = 1
end
end
i supose i could do it buy adding 1 health on a timer maybe until the max health is reached?
Edit so had a bash at that using a timer on the healing zone script which also didn't work for me lol it adds the health but doesn't wait 3 seconds hmm :/
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Collects Health
local timer[ e ] = {}
function healingzone_init(e)
end
function healingzone_main(e)
if timer[ e ] == nil then
timer[ e ] = g_Time + 3000
return
elseif g_Time < timer[ e ] then
return
end
if g_Entity[e]['plrinzone']==1 and g_PlayerHealth > 0 and g_PlayerHealth < g_gameloop_StartHealth then
SetPlayerHealth(g_PlayerHealth+1)
ActivateIfUsed(e)
end
end
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on