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"

(SOLVED) HUD - Set Icon/Image according to Weapon State on Player

Hey all,

Quick question for something I imagined would be super simple to achieve.

All I want, is when a particular flag is active on my player, for the weapon icon displayed on the hud to change respective to that. I have no idea as to why the following isnt working or showing relative assets!

Any help is very much appreciated!

alt text

Product Version: UE 4.10
Tags:
ue4_setimage.jpg (135.4 kB)
more ▼

asked Jul 10 '16 at 07:56 PM in Blueprint Scripting

avatar image

Roonast
6 1 3 4

avatar image Roonast Jul 10 '16 at 09:01 PM

Further attempts are leading me down the following path, where its only displaying a white box :(

alt text alt text

ue4-slate.jpg (125.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Heres 'a' very simple solution for my issue in case anyone stumbles on a similar need.

Just make a local variable in your function for your HUD; i.e. CurrentWeap. Then use Set off the branches to that variable, with the desired object type. Done.

alt text

more ▼

answered Jul 10 '16 at 09:35 PM

avatar image

Roonast
6 1 3 4

(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