Question about removing a body at a coordinate

Hi,
I’ve been trying some stuff out, and I can’t seem to get anything to work.

I have a body called cow, and another body which it reflects off of.

cow is spawned at y=-40, and it falls down to the surface, where it reflects back up.

cow goes to something like -100 the way I have bounce set, so I tried things such as

[code]
local cowKiller = function()

if cow.y > 30 then
cow:removeSelf()
end

[code]
but that doesn’t seem to work.
Any ideas? [import]uid: 8054 topic_id: 3177 reply_id: 303177[/import]

Well, your code is incomplete. The END for the function is missing. And how do you call that function? [import]uid: 5712 topic_id: 3177 reply_id: 9353[/import]