To expand on what oosyrag said and because it sounds like you want to ray cast to a range of angles around the player angle, you can use a loop. Something like this:
On click
- Repeat 10 times:
Cast Ray from self.X,self.Y to self.x+cos(self.angle-5+loopindex), self.y+sin(self.angle-5+loopindex)
This will cast 10 rays at 1° intervals from -5° of the player angle through to +5°