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"

Calling a variable from one class Bp to another?

Not trying to sound desperate. I'm just overwhelmed at this point..I've seen a couple posts about this but NOTHING I do works and it's finally become frustrating...it's obviously extremely simple and that's why...

I just need to create a bool variable in one class BP and pull it up in another call BP the same variable. I HAVE NO IDEA how to get it to work. It's as simple as the class BP laying on the ground, I move over it...it triggers the variable and then destroys actor...but once the variable is triggered Ill have it appear in my had. (Player call BP)

I've read on here, looked on the wiki...I don't know.. Can anyone please walk me through this??

Product Version: Not Selected
Tags:
more ▼

asked May 18 '14 at 07:09 PM in Blueprint Scripting

avatar image

AttemptD
1k 165 162 354

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

2 answers: sort voted first

Overlap event should return overlaping actor, cast that return to you BP class and set varable inside it or do any other operation.

more ▼

answered May 18 '14 at 07:23 PM

avatar image

Shadowriver
35.8k 927 169 1105

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

Hey AttemptD -

So to start with I will assume you have created a class blueprint with the variables you want to reference in the second blueprint and it exist in your level. Now in the 2nd blueprint, in the My Blueprint Window, add a new Variable and roll out the Variable Type drop down menu. You will want to select Object >> [Name of your Blueprint]_C (the underscore C always exists). Name the variable as you wish. Then Get that variable in your Graph and pull of the end and you can now reference any variable and function found in that 1st Blueprint.

Hopefully that will answer your question, but if not **here is the documentation on blueprint direct communication**

Eric Ketchum

more ▼

answered May 18 '14 at 07:30 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image AttemptD May 18 '14 at 09:37 PM

I'm still a tad confused but I think I understand it..I'm getting confused on which blueprint I should create the variable on, the first or the second, and then If I should set it to public i guess?? and what do you mean by get the variable in the graph pull off the end??

I'm close. thank you.

avatar image AttemptD May 19 '14 at 02:05 AM

Ive got it!! :) I figured out a way to make it work. Its a little different but none the less thank you for your help.

avatar image Virtual Bones Apr 05 '17 at 09:57 AM

Hey dude, could you show me how?

(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