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"

Projectile range


I got into Unreal like 2 days ago so I am a total noob to this. I was screwing around with the third person template and wanted to cast a simple fireball on rightclick. The projectile is a simple sphere with fire and smoke particles attached to it and locked on z (took me 2 hours) so it just fires in one direction. Now i want to add a range where I want to trigger an explosion. How can I accomplish this and are there any more tips for me?

This blueprint would just make it invisible when its at the point where I clicked. (doesnt work)



Product Version: Not Selected
unreal.png (365.2 kB)
more ▼

asked Mar 09 '15 at 06:50 PM in Blueprint Scripting

avatar image

6 1 2 3

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

1 answer: sort voted first

Just add a delay after Event Begin Play inside your Projectile Actor. So Instead of using distance to measure how far the projectile has travelled, use time. For Example, if you set the delay to 2 seconds, the projectile will have travelled X distance during that time. So by adjusting the length of the time variable, you can adjust the travel distance of your projectile. When the delay ends, spawn emitter at location (Explosion) and then destroy actor.

alt text

travel time.png (86.4 kB)
more ▼

answered Mar 09 '15 at 08:22 PM

avatar image

916 45 20 77

avatar image Mortusnyte Mar 09 '15 at 08:23 PM

You can also set a Hit Event inside your projectile, so that if it hits anything, like walls, it will also spawn an emitter and get destroyed.

(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