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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Problem with setting Projectile Movement Initial, Max, Acceleration

Hey there and thanks for your time. I seem to be having a problem setting a change in Initial Speed, Max Speed, and Acceleration Magnitude. Using Print String shows that the value is changed when the set node is executed but it does not reflect the action of the projectile in game. In the second picture you can see the print string is returning the initial speed as 8000 but the missiles do not move.alt text

alt text

Product Version: UE 4.17
setstats.png (326.5 kB)
more ▼

asked Dec 14 '17 at 08:50 AM in Blueprint Scripting

avatar image

3 2 5

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

1 answer: sort voted first

A few things. Can I see your projectile details tab.

And what is calling the set state event, event begin play?

more ▼

answered Dec 14 '17 at 08:56 AM

avatar image

329 7 8 12

avatar image TheCruxis Dec 14 '17 at 09:03 AM

Here you go! Set Stat event is calling from a Right Mouse Button Pressed Event from my player pawn blueprint.alt text alt text

alt text

avatar image 16bit Dec 14 '17 at 09:05 AM

Have you tried setting your stats in the construction script and not calling an event?

avatar image TheCruxis Dec 14 '17 at 09:19 AM

Doing that seems to work but with the problem of having the weapon when placed in the map zooming off. I have an inventory system that allows me to pick up the item and equip it to my character but if I set the values in construction script it can't be obtained because it is moving and the Activate Component Node cannot be called, hence the Activate Component to prevent it from having those values when in the map.

avatar image 16bit Dec 14 '17 at 09:24 AM

Well typically the inventory pickup wouldn't be the same actor as the projectile. Like if you picked up a rocket in half life or something, it would be its own actor separate from the projectile.

avatar image TheCruxis Dec 14 '17 at 09:29 AM

That's actually what I may need to do so that I don't have to worry about switching variables on and off which is where my problem seems to lay. Any point in the right direction to do this?

avatar image 16bit Dec 14 '17 at 09:35 AM

Well it sounds like you already have an inventory to pick up items. Just instead of the code being in the projectile itself, make an ammo actor blueprint with like the mesh and stuff and add it there, so it will add to your inventory when you touch/interact with it. I don't know how you have your inventory set up to get into any finer details though.

You could check out http://shootertutorial.com/tutorials/ though. It's really in-depth and he goes over and inventory around the middle.

avatar image TheCruxis Dec 14 '17 at 09:36 AM

Thank you so much for this I appreciate your time and patience.

avatar image 16bit Dec 14 '17 at 09:37 AM

No problem, just do me a favor and don't forget to mark the question as answered.

(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