Trying to make a vector for direction for a projectile

Forgive me if the answer is obvious or if I’m wording this question in a wrong way. I’m pretty new to all this. Also I’m pretty tired, I have been trying to figure this out for hours. I’m trying to make a vector that will be a direction for an actor (my character casting a spell). I want the spell to travel in a way that it moves with the X of the character itself and the Z of the camera. Essentially I want the player to be able to aim the spell on the Z axis by looking with their camera. However, I do not want the player to be able to cast a spell in a direction their character isn’t looking, if that makes sense. How could I go about doing this? I have tried to mess around with making a vector but the node that creates the actor only seems to take an input for transform. What can I do to fix this? Thanks!

Are you using blueprint or C++? It sounds like you want to use the Forward vector built into the character’s transform.

Here is a quick tutorial on youtube about how to use this:

Ok thanks! I’ll check that tutorial out.