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. 

BlueprintNativeEvent in interface automatically overridden

I've created a native interface to expose the generic team system to blueprint. It basically wraps the generic team interface in some stuff that I need in my BP functions. Here is my interface class.

 class UTeamBPInterface : public UInterface
 class ITeamBPInterface
     /** Assigns Team Agent to given TeamID */
     UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Teams")
     void SetSameTeam(const AActor* const Other);
     /** Determines if these two are on the same team */
     UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Teams")
     bool GetSameTeamAs(const AActor* const Other);

I also have implementations for both these functions which basically wrap the generic team ID stuff.

The problem is when I add the above interface to a BP, the GetSameTeamAs function is automatically overridden in the BP, but the SetSameTeam function is not. I don't want either function to be overridden in the BP, I want them to use the native implementation. Am I doing something wrong, or is this a bug?

Product Version: UE 4.11
more ▼

asked Jul 25 '16 at 11:03 PM in C++ Programming

avatar image

16 2 3

avatar image UnexpectedSquirt Dec 25 '16 at 04:59 PM

I'm curious about this too

avatar image Paul "TBBle" Hampson Apr 10 '19 at 10:38 AM

In UE 4.21.2, I'm hitting this problem, at least with the GetSameTeamAs (function) version: If I add the interface to a Blueprint, there is immediately an override generated for the BlueprintNativeEvent, with nothing attached to the return value, hiding the _Implementation default behaviour which I have customised. This seems like a bug. >_<

I am curious if the SetSameTeam (event) is getting its _Implementation hidden in the same way or not, as that would point towards whether the issue is specific to functions, or affects events too.

avatar image CoolOppo May 21 '19 at 05:54 AM

I am also having this issue. I was not having any issues before updating to 4.22, but now I've been trying everything I can and I can not get the default implementation to run...

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

1 answer: sort voted first

This isn't a pretty way to fix the issue, but if that function returns a value, then SetSameTeam will show up in the BP. I'm not 100% on exactly why that is...I think it treats functions as "Events" if they don't return a value.

more ▼

answered Aug 21 '17 at 03:47 PM

avatar image

Ryan Darcey
836 47 43 70

(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