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"

What parent class should I use for AI?

Hi all,

I will try keep this brief, I am currently working on my own FPS shooter (Alien Game) and I was about to start working on the AI when I realized I'm not sure what class to actually pick.

I've noticed a character class can be used for walking around, swimming and such but when looking at the description of the pawn class I noticed it is mentioned they are able to be possessed by AI and are used to represent players and creatures within a level.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 23 '17 at 04:29 PM in Using UE4

avatar image

Kardaras
57 3 4 8

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

If your Alien is going to be walking/moving around, you'd want to use the Character class, instead of Pawn. Using Character gives you access to the CharacterMovementComponent functionality.

The Pawn class is a parent to the Character class, so you get a host of added functionality to it

EDIT: To clarify, by using a Character, you are in fact using a Pawn, but with more functionality added to it.

more ▼

answered Jun 23 '17 at 05:08 PM

avatar image

arrpeatwo4
171 2 3 7

avatar image Kardaras Jun 23 '17 at 06:45 PM

Thanks for the advice, I decided to go with a character, I was just wanting to make sure I didn't go into using something I didn't need

(comments are locked)
10|2000 characters needed characters left
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