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"

Access none 'Sunlight' .....

alt textI'm having problems with the blueprint. I tried to fix it but couldn't figure it out. Help pls thanks :{

My bad about the pictures not showing was't really paying attention when posting the images ;p

Product Version: UE 4.9
Tags:
more ▼

asked Sep 25 '15 at 06:32 AM in Blueprint Scripting

avatar image

colarap
0 1 2

avatar image jayice Sep 25 '15 at 07:09 AM

I hate to be a donkey, and hopefully others have access, but for some reason, I cannot access any of the links.

Jay IceWare

avatar image colarap Sep 25 '15 at 07:22 AM

My bad i fixed it now

avatar image jayice Sep 25 '15 at 07:28 AM

in essence, think of "none" as a null, so the input, coming in, has no value to it, so the Light component node, has no idea what to do. So to start, check the sunlight node for having a non-node value, and if it does, print string out it's been found, and the start determining why that is true

hope this helps,

Jay

IceWare

avatar image colarap Sep 25 '15 at 07:34 AM

I get what you mean but i'am new to Unreal Engine 4 If u can help me out with visuals would help out more but thanks though ill see how to make my way around

avatar image jayice Sep 25 '15 at 07:37 AM

you need just one node, that is the not equal (in the popup context menu, type in !=), and just get it for an Object, then you can wire the pins out of that into a Branch statement, checking the condition, you only want to wire the Sunlight variable into the != node, which will force the branch to execute True, if sunlight is "not equal" to null, and false, if it is "equal" to null.

Hope that helps.

Jay

IceWare

avatar image Erasio Sep 25 '15 at 07:45 AM

Actually "IsValid" would be the better solution I think. Even though not equal absolutely works.

Though the interesting part should be why this variable is empty. Sometimes it's acceptable to just have nothing happening if the variable is empty. Sometimes it isn't.

Depending on that either a simple "IsValid" fixes it or there needs to be some kind of guarantee of it not being empty.

avatar image jayice Sep 25 '15 at 07:48 AM

so long as I can get from point A to point B, in the same amount of time, I don't care the path taken! lol

My guess is, that != executes faster, in that it doesn't imply a function call of some form to test for "all" conditions that IsValid may look for. Does it really matter how long it executes? more than likely not.

but honestly, who the heck cares, so long as the answer is understood!

have a great day!

Jay

IceWare

avatar image colarap Sep 25 '15 at 07:53 AM

Now im just too confused lol

avatar image colarap Sep 25 '15 at 07:53 AM

I did as what you said but Im not sure if i connected them right or something but from my point of view neither the false or true is lighting up

avatar image colarap Sep 25 '15 at 08:27 AM

i am confused with this thing could u help me out on which area i am suppose to add the node "!=" thank you

avatar image jayice Sep 25 '15 at 02:19 PM

Hello Colarap!

I would add the "test" right at the start, where there output pin of Sunlight is feeding into the light component. Break that link to the light component, insert the "!=" or IsValid node, with the output going to a branch, and take the "true" pin of the branch and run that into the light component node.

Then with the false pin, put in a Print String Node, to get some information as to what is going on

Hope this helps,

Jay

IceWare

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

0 answers: sort voted first
Be the first one to answer this question
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