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"

How to make a projectile trigger something on contact?

Hi, I am trying to make a Glass Grenade basically how would I go about this?

Product Version: UE 4.15
more ▼

asked Feb 05 '18 at 09:37 AM in Blueprint Scripting

avatar image

1 1 4

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

1 answer: sort voted first

There is several different ways you can approach it, depending on result you want to achieve. Maybe easiest is to add collision to your projectile and add OnOverlap Event to that collision.

more ▼

answered Feb 05 '18 at 09:56 AM

avatar image

333 4 6 15

avatar image Battleredwing Feb 05 '18 at 10:43 AM

Thanks for the answer but I am new to UE4 and don't really know how to hook that stuff up yet.

avatar image AyanMiru Feb 05 '18 at 11:03 AM

Alright, here are the steps:

  1. Open your projectile asset in blueprint editor

  2. Under "+Add Component" button add a sphere collision component (The first person example already have this component)

  3. Select the collision component and in details panel scroll down to events, you will see event named "On Component Begin Overlap", press the plus sign and it will create event wich will fire whenever this collision touches anything and you can hook it to anything you want to happen.

I would also recommend you to check the official documentation, it's a great resource for more common question. Cheers :)

(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