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"

Help to set vatiable from cast

Hello I have a trouble with sending (set) variable in one bp to another.

1) Situation

2 bp http://i.imgur.com/pisCtCj.jpg

http://i.imgur.com/jQDQwsF.png

http://i.imgur.com/Ym6bdXc.png

The idea is to send veriable from one to two bp in runtime

No errors, and don't works ((( Print string return runtime value of BP_One

2) situation

default starter in fps mode http://i.imgur.com/QTmVAHl.png

cube bp http://i.imgur.com/CrY5fX5.png

character bp http://i.imgur.com/J3Jcovg.png

UMG http://i.imgur.com/yfgjWah.png http://i.imgur.com/lI6vpdi.png

Same idea - to translate value from bp_cube to UMG, no errors, don't works

Please help to solve

Product Version: UE 4.15
Tags:
more ▼

asked May 05 '17 at 02:07 PM in Blueprint Scripting

avatar image

brothermechanic
26 3 8

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

2 answers: sort voted first

In this cases you dont need a cast event becouse you need use a reference to manipulate the variables

1) Make BP_one and BP_two

2) In BP_one make your variable, compile, make it editable by clicking the eye and set a value alt text

3) In BP_Two make a variable of type BP_one reference and make it pubblic becouse you need to set reference after.

4) To test in begin play set the variable made in BP_one using the reference

5) Compile and save alt text

6) Place both BP in scene and select the BP_Two

7) Now you need to give to BP_Two know to what BP_one in your game it must refer to make changes. To do this select in viewport your BP_Two and on Default value you found your variable you set before for BP_one reference. Click to None and coise BP-one in the list you need to interract with. alt text

8) Now play and you see that the value is changed in BP_one

a1.jpg (430.2 kB)
a2.jpg (735.6 kB)
a3.jpg (526.1 kB)
more ▼

answered May 05 '17 at 04:00 PM

avatar image

MK Studio
636 16 7 31

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

Hello All I found a solution! I did all right, but i need add a Delay to cast event! That's it)

more ▼

answered May 19 '17 at 04:59 PM

avatar image

brothermechanic
26 3 8

(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