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 to make a pawn move using the UCharacterMovementComponent?

So I created a Bot Pawn and a BT for him to patrol between two points, but for some reason he won't move and I think the problem is related with the UCharacterMovementComponent that I created. NOTES: - Beginner with C++. - I do have a nav mesh.

CharacterMovement = PCIP.CreateAbstractDefaultSubobject(this, TEXT("CharacterMovementComponent"));

Product Version: UE 4.13
Tags:
more ▼

asked Nov 08 '16 at 10:33 PM in C++ Programming

avatar image

guivmc
6 7 12 20

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

1 answer: sort voted first

Im not sure if this is the problem but i will point it out anyway i was checking out https://docs.unrealengine.com/latest/INT/API/Runtime/CoreUObject/UObject/FObjectInitializer/CreateAbstractDefaultSubobject/index.html

and it had a remark regarding have the same name as the subobject.

Remarks Create optional component or subobject. Optional subobjects may not get created when a derived class specified DoNotCreateDefaultSubobject with the subobject's name.

so like shorten the name and add "_01" or something like that if it works then u know where the problem is :) hope that helps.

more ▼

answered Nov 08 '16 at 10:48 PM

avatar image

Wisefao
21 1

(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