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 change a variable in another blueprint ?

How do I go about changing a variable from a blueprint to another blueprint ? Specifically, I have loads of blueprints in my level which I want to interact with (change an enum), see picture below (all the x are blueprints)

alt text

Using this method so that I can change only the enumerator of a blueprint which i'm clicking on

alt text

I've tried using interfaces like in the picture below but I don't know why the interface is never firing:

alt text

I've been trying this for a few days not but I'm not getting anywhere. If you could help that would be ace ! Thank you in advance for your time !

Product Version: UE 4.9
1.jpg (909.9 kB)
2.jpg (189.2 kB)
3.jpg (335.5 kB)
more ▼

asked Oct 30 '15 at 12:22 AM in Blueprint Scripting

avatar image

179 20 19 25

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

1 answer: sort voted first

I don't know how your game works but i think you need to create 1 public function inside of your blueprint or interface call "change variable" which will set value of your textblock. After click make line trace and if hit component is your object call "change variable" from there. And try to make this script inside of your character or controller. Good luck.

more ▼

answered Oct 30 '15 at 08:07 PM

avatar image

336 17 3 17

(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