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"

error C3248: 'AController::Possess': function declared as 'final' cannot be overridden by 'Aenemy_npc1_ai_controller::Possess'

i was coding character npc that will follow player character but now i'm having possess error and i can't fix it

compiler error log:

C:\Users\j3lly\Documents\GitHub\UnrealEngine\Engine\Source\Runtime\Engine\Classes\GameFramework/Controller.h(266): note: see declaration of 'AController::Possess' C:\Users\j3lly\Documents\Unreal Projects\death_show\Source\death_show\enemy_npc1_ai_controller.h(25) : error C3248: 'AController::Possess': function declared as 'final' cannot be overridden by 'Aenemy_npc1_ai_controller::Possess'

according 2 this ue4 documentation link, u include possess with:

#include "Runtime/Engine/Classes/GameFramework/Controller.h"

i did that but it doesn't work

here's my code:

build.cs alt text

enemy_npc1_ai_controller.h alt text

i'm using ue4.23 compiled from source code

could some1 please help me out? :<

Product Version: UE 4.22
Tags:
more ▼

asked May 29 '19 at 04:29 PM in C++ Programming

avatar image

j3lly_m3lly
5 2 3

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

1 answer: sort voted first

Since 4.22 it's deprecated, you should use new methods for Possess / Unpossess:

 void OnPossess(APawn* InPawn) override;
 void OnUnPossess() override;

For the details, look into the Engine\Source\Runtime\Engine\Classes\GameFramework\Controller.h:266

more ▼

answered May 29 '19 at 07:47 PM

avatar image

norlin
440 11 18 28

(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