You will most likely have to monitor the health value then implement logic based on that health value:
Code:
if checkHealth then checkHealth.destroy() end
checkHealth = createTimer(getMainForm())
checkHealth.Interval = 50
checkHealth.OnTimer = function()
local health = readFloat('address_of_health')
if health ~= nil and health == 0 then
print('Player is dead')
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum