x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Why is a projectile only firing from player start?

I have a ball player I can move it around perfect. However, when I add a projectile to fire from it, it only wants to fire from the player start.

When I access the Get actor location and Get Actor Rotation Functions they don't ever seem to change values from the player start. I can use world location and that will fire from the location of my ball..

Is there something that updates the ACTOR position or did I build my playerCharecter incorrectly?

Product Version: Not Selected
Tags:
more ▼

asked Apr 20 '14 at 07:59 PM in Blueprint Scripting

avatar image

Enlikil
16 4 6 7

avatar image [Epic] Gribbs ♦♦ STAFF May 07 '14 at 02:29 PM

Hi Enlikil,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi, I've done something similar to this, if I understand what you want.

Firstly, in you Projectile Blueprint, you have to create some variables :

alt text

Look, I've created a Speed variable which is Vector, a Projectile Owner variable which is an Actor. (You don't need the others). So, create an Event tick node and a Add Actor LocalOffset node. Then you need to add a Vector*Float where you link the Even tick Delta seconds and the Speed variable. Do not add any value to the Speed variable yet. We'll give it a value in the PlayerController Blueprint.

Secondly, in your PlayerController Blueprint, link a "SpawnActor Form class" node to your Fire event. Select you Projectile BP as "Class". For the Spawn Transform, just link this : Get Player Character > Get Actor Transform > Spawn Transform

You'll notice that the Speed variable and the Projectile Owner variable from the Projectile BP appear in this node. If not, try to update and compile.

For the Speed, just create a "Make Vector" node and add the values that you want for Yaw, pitch and roll. You can link these to inputs like a gamepad stick if you want.

And finally, you have to create a reference to Self that you link to Projectile Owner.

You should have something like that :

alt text (You don't need the Make Color 'cause you don't need the Projectile Color variable ;) )

So, I hope this could be helpful

more ▼

answered May 03 '14 at 03:08 PM

avatar image

TheOnlyDoubleF
81 7 7 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question