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"

Can't acess level blueprint variables

Hello,

I'm trying to access a Boolean variable stored in my level blueprint using another blueprint. However each time I try I get accessed none errors.

alt text

alt text

Product Version: Not Selected
Tags:
blueprint.png (105.6 kB)
more ▼

asked Jun 08 '14 at 07:36 AM in Blueprint Scripting

avatar image

Glenn1990
101 15 17 22

avatar image Shadowriver Jun 08 '14 at 09:01 AM

Do you actully storevrefrene to pevel blueprint instace in "New Var"?

avatar image Glenn1990 Jun 08 '14 at 09:28 AM

new var is an empty actor variable.

avatar image Glenn1990 Jun 08 '14 at 09:51 AM

The image below shows a 2nd solution by directly referencing the variable. However it still get the accessed none error.

alt text

untitled3.png (57.1 kB)
avatar image Shadowriver Jun 08 '14 at 10:15 AM

You should know whats the problem yourself

None = Empty

You cant call funtions on empty varable

avatar image Glenn1990 Jun 08 '14 at 10:50 AM

I'm confused. But its not empty, it should contain all the variables from the level1 blueprint.

avatar image Shadowriver Jun 08 '14 at 08:58 PM

It is empty if you geting "None" error, you need to put level blueprint refrence inside it or else your blueprint on't know which object to use.

avatar image ScottSpadea Jun 08 '14 at 07:00 PM

what functionality are you actually trying to achieve? if you explain what you want the boolean to represent, there may be a more logical place for that boolean to exist.

avatar image Shadowriver Jun 08 '14 at 09:00 PM

I agree to that, i tried to find way to get access to LevelScriptActor (true name of level blueprint class), but it seems it's only accessable via C++, or else you send object refrence from level blueprint to some other object. Or else Level1 class you made is not level blueprint, then you need to populate that "New Var" or "Targe Blueprint" ih refrence to Level1 object that you need to spawn beforehand

avatar image Glenn1990 Jun 08 '14 at 09:20 PM

level1 is the name of the level.

avatar image Glenn1990 Jun 08 '14 at 09:20 PM

Its a simple boolean that tells the objects in the game whether the game has started.

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

1 answer: sort voted first

Ok spending lots of time on how to do that innormal thing i finnaly got solution!Go to your level Bluprint,then go to CLASS DEFAULTS and (on my one)to your right you will see a tab called DEFAULT! there will be your custom boolean or variables you created!Put mark on them and now you can use your booleans or variables wherever you want! yahooooo!1

more ▼

answered Apr 21 '15 at 12:19 PM

avatar image

Vladimir Arevshatyan
31 1 4 10

(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