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 a Boolean in one Blueprint from Another Problem

Hello!

I am trying to set up a simple "Kill Box" (a trigger volume blueprint) for a 2D platform.

You overlap the Kill Box it would call upon a true or false Boolean in my Characters blueprint disabling input, playing an animation and reload the level (aka die).

The dying part already works and instead of playing an animation I have a string of txt ("you are dead") to let me know things are working.

I made my kill Boolean inside my Character Public and used the "Cast To" function in my Kill Box to set it to true.

This will not work but my string of text "you are dead" plays when I come into contact with my Kill Box but my input will not disable and my level will not reload.

I know I could easily do it all via the World Blue prints but I would rather be efficient and just create a blueprint I can plop down that has the functionality already set up.

Please help me and check out the images below.

alt text

alt text

alt text

Product Version: UE 4.11
Tags:
char_bp.png (348.7 kB)
kb_bp.png (269.6 kB)
ingame.png (708.0 kB)
more ▼

asked Apr 25 '16 at 08:09 AM in Using UE4

avatar image

Mastace
5 1 4 6

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

1 answer: sort voted first

Mastace, the problem is you aren't calling the "dead" event, you're just setting the variable. Just call the event in te Kill Box BP after setting the variable, and that should work for you.

more ▼

answered Apr 25 '16 at 12:45 PM

avatar image

drummerof13
79 2 5 12

avatar image Mastace Apr 25 '16 at 09:11 PM

Works perfectly!

Yeah I am new to custom events I thought I had to call a variable to get it to work so its simpler.

Thank you so much you, I followed you.

(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