%start = %player.getEyePoint();
%end = VectorAdd(VectorScale(VectorNormalize(%player.getEyeVector()), 10), %start);
%brick = FirstWord(ContainerRayCast(%start, %end, $TypeMasks::FxBrickObjectType, %player));
I'm not really sure why this isn't working but I think it has something to do with it being client sided. %player contains the client-sided player object. For some reason %brick always ends up being 0.