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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to pass variable from one blueprint to another

So i've come into a problem with the blueprints system.

In Unrealscript I passed these variables to my gameinfo class and used them from there.

My current issue is i'm trying to make my volume set a variable to 1 on overlap with the character and 0 on non-overlap. Then pass that variable over to my MyCharacter blueprint which will then be used to do a compareint. If it turns back equal, carry on.. if false do nothing.

I've looked up several things on Interfaces but it seems like there is something I am missing. It's probably one of those things where I'm looking at it wrong, so I come to ask whomever can explain it best!

Found a solution.

By dragging from my "OnComponentBeginOverlap: Over Actor" pin I was able to select 'Cast To MyCharacter'. From there I dragged from the "As My Character C" to "Set ". This allowed me to change the variable in "MyCharacter" when my volume blueprint was overlapped.

Product Version: Not Selected
Tags:
more ▼

asked Mar 21 '14 at 01:02 AM in Blueprint Scripting

avatar image

Wuvluv
26 2 5 9

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

1 answer: sort voted first

To add onto your discovery.

Another way is creating a BluePrint specifically for holding certain global variables. This would allow all your BluePrints to access one class creating ease of access. Unless the certain variables are character unique, then your method fits well!

Peace

more ▼

answered Mar 21 '14 at 08:41 AM

avatar image

PeterLNewton
2.1k 75 36 110

(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