Download

problem with shots

Hi all…
I ve created this blueprint sistem for shot but when i press the left click of the mouse i can hear only the sound…but nothing spawn and nothing hit the block…what i wrong? Ps how i can create the anime montage for do fire?
http://s29.postimg.org/stp1v2kn7/Immagine.jpg

I can barely read that blueprint, please use zoom 1 when taking screenshots.

I think your shot is being spawned, but your transform is wrong because you need to rotate the look vector by [1,0,0], not [0,0,0].

it doesn’t shot…
I can hear only the sound after the shot(after the spawn)
http://s12.postimg.org/4r3cjk9uh/Immagine.jpg

Check the Scene Outline after you’ve shot for an instance of that spawned Actor. If you can’t find it, then it might not be spawned.
If you CAN find it, then your Transform is wrong (which Slayemin already told you). You are rotating the NullVector. That is still
the NullVector if i’m not mistaken. Check you Vectors!

i done like slame said… now is 1.0.0

Put breakpoints on your code and see what is happening.

i seen that the object spawn but don’t move…

Spawning a projectile does not mean that it just magically flies for you. Have you made any logic for it to move?
For example adding something to the ForwardVector direction on EventTick?

sorry for the stupid quest exi but all this rotate and trasform don’t make it move?
I wronged there right?
Can yo explain me better?

No, they don’t make it move. They just make the place where it spawns.

In your “Projectile” blueprint, take the Event Tick and use the Location SET and GET to add movement in a specific direction.
You could also handle that with the “ProjectileComponent”, but sadly i have no idea how this thing works.

Something like this:

http://puu.sh/k6DKR/ec45b34c35.png

Then you would only need to get the correct rotation for the Spawn, so that the newly spawned actor faces the direction you want it to fly.

Lol why i can shoot laterally?
I want to shoot only from the gun xD
http://s28.postimg.org/ewp159ow9/Immagine.jpg
That high mesh on the left is my bullet(i have growed only for see)

maybe i have to give a mesh variable to the gun?