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"

how can I use custom events/timers to make a gun explode in the player's hands?

I am creating a 2.5D action side scroll for a university project. My main idea is that when the player picks up enemy weapons that a timer is activated 10-15 seconds, once the timer is up the gun explodes damaging whatever is in the radius. I feel like this is a trivial script to set up however after multiple failed attempts I'm stumped. I will also include screenshots of my blueprints to see if anyone can figure out the issue, many thanks in advance. alt text

Product Version: UE 4.17
Tags:
more ▼

asked Oct 17 '17 at 10:52 AM in Blueprint Scripting

avatar image

Kmanning5
1 2 3

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

2 answers: sort voted first

You can do this in a simplier way. Make from your gun that will explode a blueprint (actor). Then make one bool for "IsPickedUp?". If your Player pick up the gun, cast to the gun and call a custom Event. In this Event you only Need a delay and after the delay spawn your effects and so on. Right after this you can cast to your Player damage.

more ▼

answered Oct 18 '17 at 12:03 PM

avatar image

Beregron
318 9 13 22

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

You can do this in a simplier way. Make from your gun that will explode a blueprint (actor). Then make one bool for "IsPickedUp?". If your Player pick up the gun, cast to the gun and call a custom Event. In this Event you only Need a delay and after the delay spawn your effects and so on. Right after this you can cast to your Player damage.

more ▼

answered Oct 18 '17 at 12:03 PM

avatar image

Beregron
318 9 13 22

(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