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"

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. 

I need Event On Possess , in c++ ? ...

Hi Guys; In AI-Controller Blueprint, there is an event called "Event On Possess". I would like to an equivalent of this event in C++ , please. Actually, I need this event body in cpp , to put the codes (Like MoveToLocation and so on ...)

Thanks. MSD.

Product Version: Not Selected
Tags:
more ▼

asked Feb 21 '15 at 05:06 AM in C++ Programming

avatar image

MSD
63 10 12 17

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

5 answers: sort voted first

Hi,

I guess you could override the Possess function of the AIController because is declared virtual (see docs). I didn't test it but looking at the code, this should work:

 void AMyAIController::Possess(APawn* InPawn)
 {
     Super::Possess(InPawn);
     // your "OnPossess" code here
     // ...
 }

The Bluepint event will be called as well.

more ▼

answered Feb 21 '15 at 01:33 PM

avatar image

trutty
541 29 32 181

avatar image Moss Feb 21 '15 at 01:45 PM

Apart from the Possess function which might be dangerous because you cut cut the posses logic not calling the super etc you can use SetPawn, which is called by the engine when possessing / unpossessing:

 /** Setter for Pawn. Normally should only be used internally when possessing/unpossessing a Pawn. */
     virtual void SetPawn(APawn* InPawn) override;
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

If you are looking for any professional custom dissertation writing service and experts for your college essays assignments so you don't go anywhere and come with us our custom dissertation writing service is working for the students and provide the all types of writing services.

more ▼

answered Nov 24 '18 at 06:02 AM

avatar image

bestuk
0

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

Choose edubirdie scam writing company. students will always feel 100% satisfaction as we always provide only best quality writing services at prices that are affordable to students across the world.

more ▼

answered Nov 26 '18 at 09:04 AM

avatar image

LillianTrevino
0

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

The Boost.Signals library is an implementation of a managed signals and slots system. Signals represent callbacks with multiple targets, and are also called publishers or events in similar systems. Signals are connected to some set of slots, which are callback receivers (also called event targets or subscribers), which are called when the signal is "emitted." best essay writing service

more ▼

answered Feb 21 '15 at 06:00 AM

avatar image

thomaskbrent
0

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

Might I also suggest looking at the BeginPlayingState() function.

It seems to be called immediately following possession, but is empty and thus safe to override.

more ▼

answered Jul 02 '17 at 02:40 PM

avatar image

Greywacke
240 7 9 15

(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