--  This lua script is reusable for anything and anyone!
-- I hope she made lots'a spaghetti!

-- NOTE: speed and distance will *NOT* change if you scale the object

function A_ItemBob(actor)
	local min_timer = 200*FRACUNIT*(leveltime*2 / 1)

	local i_speed = 3 -- changes how fast the object moves
	local i_dist = 2 -- changes how far the object travels upwards 

	local i_height = i_dist*sin(i_speed*min_timer)
	actor.momz = i_height

end

--[[ notes (ignore)

addfile lua_baldi_test.pk3
min_timer og value: 10000000
11930465

]]
