Here you are, this is how I do it. You need all of that variable stuff in the pic then use the spfunc in your loop. I know how to use the raycaster a little, but I'm not an expert so good luck ;D Also I check miiverse every few days.