-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Player Collects Health function waterfull_init(e) end function waterfull_main(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 50 and g_PlayerHealth > 0 then PromptDuration("Energy drink, now that feels better.",3000) PlaySound(e,1) thirsty = 0 if thirsty < 0 then thirsty = 0 end Destroy(e) ActivateIfUsed(e) end end