How to make an actor move in a figure 8

I would like to make a behavior to make an actor move in a sideways figure eight (like an infinity sign). I can't figure out how to make it work smoothly. It seems like it should be simple. Does anyone have any ideas?
Comments
radius = sin(2*time)*100
x = cos(time)*radius
y = sin(time)*radius
that should do it, haven't tested it though. May not work
edit: nope, that doesn't work. It makes a pretty flower / spirograph though
kipper