- cannonLength is the length of your cannon, depends on the actor you're using. Probably a constant, I would use an Normal (not game) Attribute. You can set it in the Actor's behaviors section.
- cannonAngle is the direction of your cannon. You are looking for [[direction of self] as radians] block I guess.
- this expression gives you the center of the bullet, while you need the top-left corner to create it. Subtract half of the width from the x position and half of the height from the y position.
There should be a FAQ for the attribute thing, because you're not the only one confused about it. If not, start a new question to it so anyone can find it who is interested (I wouldn't search something like that under the name "topdown turret"
) - and some guys who have better explaining skills than me, will probably answer you.