Well. If I knew how to use the search feature, this thread would not exist. Heres the code I whipped up:

You'll never guess who's thread response helped me solve this. I'll give you a hint: The name starts with S and rhymes with uperku

Code:
action bobinwater()
{
	set(my,PASSABLE);
	VECTOR origin;
	vec_set(origin,my.x);
	ANGLE organg;
	organg.tilt = my.tilt;
	organg.roll = my.roll;
	var bob;
	while(1)
	{
		bob += time_step*5;
		bob %= 360;
		my.z = origin.z-sinv(bob);
		my.roll = organg.roll+12*sinv(bob+90);
		my.tilt = organg.tilt+5*sinv(bob);
		my.pan += time_step*0.1;
		wait(1);
	}	
	
}



Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en