what is the "directionOfShoot" object ?
you need to put an angle, if you want to get an angle from coordinates you need two points. the "from" point and the "to" point
then to get the angle the formula is angle(from.x,from.y,to.x,to.y)
Here you're just putting an x and y coordinate separated by a coma, that's not something c2 understands