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 does my blueprint stop working?

Should hopefully be a simple one... I have a simple BP as you can see by the screenshot below, the objective for the BP is to chop a tree. It works fine for a while but it seems to stop working. It seems to stop working if I chop to fast. Any idea why this happens? (when it stops working I get no overlap event at all).

alt text

Thanks.

Product Version: UE 4.17
Tags:
bp.png (163.5 kB)
more ▼

asked Dec 22 '17 at 03:48 AM in Blueprint Scripting

avatar image

Tommow
15 13 17 18

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

1 answer: sort voted first

It could be a very common problem among many tutorials that deal with overlap: you can overlap with more than one thing. To do it right, you need to keep a list of the things you are overlapping with and remove them when the EndOverlap event is triggered.

That may not be your issue but it will be eventually because begin/end overlap is being called arbitrarily so you can't know that the object you overlapped with last is the one you are ending overlap with now.

Oh, and be careful that you don't overlap with multiple components of the same actor -- or account for it if you need to. You can get multiple begin/end events from the same actor.

more ▼

answered Dec 22 '17 at 04:17 AM

avatar image

Jin_VE
4.4k 32 77 42

avatar image Jin_VE Dec 22 '17 at 04:20 AM

Oh, and maybe after your left-button event, check to see if IsChopping is already set. If it is, don't chop. Only play the montage if you're not already chopping. That would make sense if you're seeing this problem when you chop too fast.

avatar image Jin_VE Dec 22 '17 at 04:27 AM

Umm... Also, I'm not sure the DoOnce is doing what you want it to.

What I would do is play the montage when not already chopping and then add a notification to the chop animation that indicates the swing is complete. Then when that event is triggered, I would change IsChopping to false so the montage can play again. The fact that it hit something has nothing to do with whether or not the swing is finished -- I think that's the basic problem in your logic.

(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