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 only show HUD of possessed pawns

I have scattered a few possessable pawns of same class in level. The pawns create a button widget on possession which on clicked switch backs to the main pawn of different class. If I cycle through the widget of the previous possessed pawn doesn't disappear.

alt text

Is this the correct way to do this? I think I have to use Get Actors OF Same Class and For Each Loop to make it correctly work.

Product Version: UE 4.20
more ▼

asked Sep 14 '18 at 10:47 AM in Blueprint Scripting

avatar image

8 1 2 9

avatar image Erytriel Sep 14 '18 at 12:44 PM

could u show a picture of the current ingame? how the eror looks?

avatar image nitron64 Sep 14 '18 at 02:20 PM

There are no errors. The game runs and quits without any error. Maybe I'm not explaining correctly.

What I'm trying to do is create a real estate plan view, like a navigateable aerial view. There's a orbit camera pawn which looks the level from above and rotate around it. There are a few pawns scattered in the level which are like 360 view camera which rotates around in one place. I possesses the 360 camera with set view target with blend. I can then switch between the the 360 camera pawns and navigate the level from eye level. The 360 camera pawn on possession create a Button widget to switch back to the orbit camera. But on switching back the button widget does not dissappear. I have to click on it as many times as I have navigated the 360 camera pawn from eye level.

That's as best I can explain it in words. I'll post a video showcasing it when I get back to the computer.

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

1 answer: sort voted first

Non-pure node (once with exec pins) pins states clear or end of node continuity (end of scope), so in your case after "Bind to Event to OnClicked" the scopes end and state of "Return Value" you use to get widget reference is cleared and can not be reused or else retrigger the node (which in your case there no point of doing that).

You forgot about most basic thing you can do.... to keep the reference of object you made in variable to control it later ;]

more ▼

answered Sep 14 '18 at 04:17 PM

avatar image

36.6k 931 169 1111

avatar image nitron64 Sep 14 '18 at 04:39 PM

What? Can you explain it in simple terms. I am not a programmer. Are you saying there's no need to remove the widget from the parent? And to get the reference of all the pawns of this class in a variable?

(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