INPStarfall / Starfall

Starfall Processor for Garry's Mod + Wiremod
http://www.wiremod.com/forum/developers-showcase/22739-starfall-processor.html
Other
17 stars 15 forks source link

attempt to call method 'setHealth' (a nil value) #430

Closed NoAccountNameHere closed 1 year ago

NoAccountNameHere commented 1 year ago

--@name Healer --@author No_Name_Here --@model models/Items/HealthKit.mdl --@client (u dont need client u need shared)

g = false

timer.create ("heathcheck", 0.0000000000000000000000000000000000000000000000000000000000000000001, 0, function()
if owner():getHealth() <= 99 then g = true else g = false end if g == true then owner():setHealth (100) g = false end end )

timer.start ("healthcheck")