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"

Setting Bush On Fire Through Fire Contact

My goal here is for my ThirdPersonCharacter to be able to approach things while he is on fire and cause them to set on fire if able. If ThirdPersonCharacter is not on fire, he shouldn't be able to set things on fire.

Here are the nodes that set up making the ThirdPersonCharacter able to set on fire and turn it off. It also shows the PlayerFire variable on the side.

alt text

This one below shows the Event Tick on the same Blueprint that allows the fire to run out over time.

alt text

Now here below is the Blueprint for the bush I am setting on fire.

alt text

I have played with the blueprints for the two several times but have yet to reach the desired goal. Probably overlooking something simple I'm sure.

Below is the base state. The character isn't on fire and neither is the bush.

alt text

Now, under this, is the character overlapping the bush causing it to set fire while he is not on fire. This is what I don't want.

alt text

Below this is when the character is on fire, he sets the bush on fire as well. That's also what I want but I am unsure how I made that part work because it wasn't working before playing for the screenshots.

Well it was gong to be but I've reach the limit of attachments but its just the character touching the bush and both are on fire.

Product Version: UE 4.18
Tags:
more ▼

asked Apr 16 '18 at 05:04 AM in Blueprint Scripting

avatar image

zeltparker
13 2 2 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Since no one here could figure out how to help me, I just sat down and kept trying until I got it to work. Putting my answers so that I can look back to it or incase someone has a similar problem.

Below is the way the character sets on fire and the variable on the side to tell if the fire is true or not. This is a part of the ThirdPersonCharacter's Blueprint

alt text

Below here is the same blueprint but the event tick allowing the fire to run out on it's own.

alt text

And below this is the blueprint for the bush that the TPC sets on fire. Finally made it where it would only set on fire if the character is. Not sure what the problem was before but I'll be able to look over the differences shortly.

alt text

more ▼

answered Apr 22 '18 at 06:45 PM

avatar image

zeltparker
13 2 2 5

avatar image zeltparker Apr 22 '18 at 06:51 PM

Looking over it, all the error was in the Bush BP. It appears I just had to tweek a couple of the nodes after the overlap begins. It looks like I just swapped the Cast to TPC and the branch around.

(comments are locked)
10|2000 characters needed characters left
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