Toggle Visibility of a Component in another blueprint?
Hey, i wanted to make it so when you walk over the bow on the ground it picks it up, but toggling the visibility does not seem to work to the FirstPersonCharacter blueprint. However it makes the bow on the ground vanish which is correct.
The selected nodes are from when i tried getting the tag name.
So then i am using the child index which i am assuming is this (i can't find anything online):
I was going to set the visibility to nothing on level start, however i cannot seem to find any event to do so. (Event Level Reset does not seem to trigger)
So, i guess there is two questions. Why won't the component with the tag "Bow1" and index "0" not toggle or be found? And how can i specify that a component is not visible by default when the level starts?
EDIT: Seems like blueprint access is null, even though i can get variables from it.
I tried: Get Bow Blueprint > isValid and it says it is false. Any idea's?
Since you are using the FirstPersonCharacter blueprint, you could use Overlap instead of event hit, then use the below BP to set the visibility of the component on your character. You will need to set the bow on grounds collision to overlap all instead of block all though.
Full Res: http://i.imgur.com/J6a1E4x.jpg
Then turn off the BowOnGround actors visibility the same way.
Full Res: http://i.imgur.com/CM2Z4lJ.jpg
To answer your other questions, you can set component tags seperately from your actor tags, click on a component in your BP, scroll down to tags on that and you will see a Component Tags array under Tags.
To specify a component isn't visible on start can be done a couple ways. Turn the uncheck the visibility toggle on that component in the blueprint or use an Begin Play event to turn it off in the same manner we turn it on in the above scripts.
Does that help?
Hey, i got past that issue. Playing around got me around it. However, i am now facing the issue of Accessed None.
Its on the set Int DrawText, i am getting FirstPersonHUD by direct access and then setting the integer however it does not seem to find set it. Even though it is clearly finding the var.
Any idea why its failing to set the integer ? Errors:
answered Apr 27 '16 at 09:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here