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 Acces Variable More Than Once ? Advice Please.

Hey mates. Need a little advice or guidance or directions. Been working on my inventory system. Works well. I am trying to make a description window pop up just item's name and it's short description written on it when player howers on the item in inventory. As an example here is one from Gothic 3:

alt text

I have came quite a bit into accomplishing that. But the thing is description is shown only first time player is hovering the item on the inventory. If I pull the mouse away and do it again it just gives no description. Here first and second time.

alt text

alt text

I have a simple inventory system. Inventory itself works quite robust and well. I am using this tutorial if you need to know: https://www.youtube.com/watch?v=_U5VbM1UdCM&list=PLboXykqtm8dzeQmW8ZgR4gVLUILM0sdVy∈dex=4

I have three widgets: Inventory; InventorySlot, ItemDescBox. InventorySlot is just a button, image and text that are binded to AddedItem variable (custom FInventoryItem type) Inventory just collects these slots into a window and updates the slots in it's Event Graph. Here is Inventory's Event Graph if it helps:

alt text

ItemDesBox is just an image and text on it binded to AddedItemDesc (same FInventoryItem type before). I made a small addition in ItemSlot's Event Graph with OnHowered and OnUnhowered ones. The OnHowered one simply draws the ItemDescBox and Sets over the AddedItem variable to AddedItemDesc variable of ItemDescBox since they are both essentially the same type. The OnUnHowered one simply hides the widget.

alt text

But like I explained this only works the first time. After that it always is returning nothing. What is it you think maybe causing this ? I have tried for 2 days but I am no master of UE4. Wanted to ask it. Also if you have any advices in general and tutorials you wanna suggest, I would like to hear them too. Thanks.

Product Version: UE 4.18
Tags:
10.jpg (181.1 kB)
prob1.png (2.1 MB)
prob2.png (2.1 MB)
prob4.jpg (242.3 kB)
prob3.jpg (241.0 kB)
more ▼

asked Mar 23 '19 at 08:02 AM in Blueprint Scripting

avatar image

TAN_
10 4 3 5

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

1 answer: sort voted first
more ▼

answered Mar 24 '19 at 11:40 PM

avatar image

TAN_
10 4 3 5

(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