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"

UI button to open door?Please help!

alt text

Guys i'm trying to cast the widget UI to the door,so i can press button 1 and open it,2 and close it but i just can't cast it.What am i doing wrong here? I'm stuck on this!

Product Version: UE 4.20
Tags:
cap.png (931.0 kB)
doorbp.png (172.9 kB)
widbp.png (170.6 kB)
more ▼

asked Aug 04 '18 at 07:16 PM in Blueprint Scripting

avatar image

ken09block123
8 1 3

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

You need a reference to your "doorproximity" actor in the level, not a reference to the owning player or the controller. Somehow you need to tell the widget with the "pressed" event what "doorproximity" is and for that you need to give it a reference to the actor. OR you need to tell "doorproximity" who the widget is. You can use interfaces, event dispatchers, the Level BP with a direct reference or if you must and only have 1 door in your level "get all actors of class".

more ▼

answered Aug 05 '18 at 05:10 PM

avatar image

Nebula Games Inc
4.1k 24 9 14

(comments are locked)
10|2000 characters needed characters left

Try get player controller instead

more ▼

answered Aug 05 '18 at 07:09 AM

avatar image

mercuriusfm
246 16 14 22

(comments are locked)
10|2000 characters needed characters left

Guys thanks for your help,it workded great!

more ▼

answered Aug 08 '18 at 12:56 PM

avatar image

ken09block123
8 1 3

(comments are locked)
10|2000 characters needed characters left
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