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"

How do I properly use an interface?

I have been trying every which way to get this interface to work with no luck and I have no idea what the problem is. I was looking at the UE4 documentation, and I implement the interface in each of my blueprints, but it wont let me make an event so I can send variables!

In this example for testing purposes, I have build a fog gate similar to the ones in the dark souls games. The default state of this gate is "areablocker", meaning that it blocks navigation to the area and cannot be interacted with. By interacting with the NPC "Brain" in front of the gate, he would tell you there is a monster ahead, and then "Brain" would send the value "BossGate" in variable "GateType" over to the gate via interface, which would make the gate to be interacted with.

Can anyone explain/post a BP showing how this should be set up in "Brain", "FogGate", and the interfaceBP?

Product Version: UE 4.11
Tags:
more ▼

asked Apr 17 '16 at 06:31 PM in Blueprint Scripting

avatar image

nemesismark
6 2 4 5

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

2 answers: sort voted first

It actually will work with outputs, you just have to use a function for the interface when outputs are present (because events can't return anything).

more ▼

answered Apr 18 '16 at 03:41 AM

avatar image

CleanCut
2.1k 67 84 77

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

Solution: I had inputs and outputs set up on the interface. Looks like it only works if you only have Inputs (in the target bp they are available as output pins appartently)

more ▼

answered Apr 17 '16 at 08:02 PM

avatar image

nemesismark
6 2 4 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