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"

Difference between actor and pawn.

Hello.

Im a former unity developer who rencently ported to unreal 4. Im therefore having a hard time grasping what the different things do and dont. One thing i dont understand is the difference between actors and pawns. To me it seems that actors server the same purpouse as gameObjects do in unity. But i dont know what the pawns do. Could anyone give me some concrete info on what they do and dont?

Thank you.

Extra note. If anyone could tell me what characters do too i would be very grateful

Product Version: Not Selected
Tags:
more ▼

asked Mar 31 '15 at 01:37 PM in Blueprint Scripting

avatar image

Indiana Mogens
81 3 4 6

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

2 answers: sort voted first

Although the comments explain this (eventually), the accepted answer just links to the documentation, totally unhelpfully. The final explanation is simplest:

  • An Actor is the equivalent of a unity GameObject; ie. Anything in the game state.

  • Pawn extends Actor and is basically a 'Player Chatacter'. Unity does not have this concept.

  • Character extends Pawn for a specific FPS human style Pawn with specific inbuilt behaviour.

    Pawns

The key tangible difference to understand is that in UE4, all input and camera interaction is done via the 'Controller' associated with a player. This represents (basically) a single person sitting in front of a device using the game; in a multiplayer game you will have multiple players each with their own Controller.

Each Pawn is an Actor associated with a specific controller; it is the representation of that specific player in the game; as I said before, unity does not have this concept, and requires to you build this abstraction (if you want it) on top of the raw GameObject in unity.

There are also 'Spectator Pawns', which, obviously are people watching, but not interacting with the game. This is another built in function in UE4 not found in unity.

Characters

Characters extend Pawn in a specific way; you don't have to use them if you want to roll your own custom functionality, but they provide some specific built in behaviour.

At a technical level, Characters are Pawns with an associated SkeletalMeshComponent, for complex animations. It also has the CharacterMovementComponent, which, critically cannot be added to Pawns.

Long story short, there's a specific workflow which has been implemented for getting characters into the game, detailed here: https://docs.unrealengine.com/latest/INT/Engine/Animation/CharacterSetupOverview/index.html

If you want to use it, you have to use a Character instead of a Pawn.

more ▼

answered Apr 01 '15 at 03:38 AM

avatar image

shadowmint
537 17 18 80

avatar image Indiana Mogens Apr 01 '15 at 06:27 PM

Now that is some helpful stuff. Thanks a lot!

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

answered Mar 31 '15 at 02:04 PM

avatar image

Ockertvs
158 6 10 23

avatar image Indiana Mogens Mar 31 '15 at 02:05 PM

Unfortunately didnt really. A lot of these words dont make sence to me. Im not a very experienced dev and im not native english speaking so most of this just goes over my head. Thanks for replying though.

avatar image Ockertvs Mar 31 '15 at 02:13 PM

Actors: "Actor is the base class for an Object that can be placed or spawned in a level. Actors may contain a collection of ActorComponents, which can be used to control how actors move, how they are rendered, etc. The other main function of an Actor is the replication of properties and function calls across the network during play."

Pawn: https://docs.unrealengine.com/latest/INT/Gameplay/Framework/Pawn/index.html

"The Pawn class is the base class of all Actors that can be controlled by players or AI. A Pawn is the physical representation of a player or AI entity within the world. This not only means that the Pawn determines what the player or AI entity looks like visually, but also how it interacts with the world in terms of collisions and other physical interactions. This can be confusing in certain circumstances as some types of games may not have a visible player mesh or avatar within the game. Regardless, the Pawn still represents the physical location, rotation, etc. of a player or entity within the game. A Character is a special type of Pawn that has the ability to walk around."

Character: https://docs.unrealengine.com/latest/INT/Gameplay/Framework/Pawn/Character/index.html

"With the addition of a CharacterMovementComponent, a CapsuleComponent, and a Skeletal Mesh, the Pawn class is extended into the highly-featured Character class. A Character is designed for a vertically-oriented player representation that can walk, run, jump, fly, and swim through the world. This class also contains implementations of basic networking and input models."

avatar image Indiana Mogens Mar 31 '15 at 02:26 PM

My entire problem is that i dont understand how all this is handled since i always just go from my unity experience. And a lot of this doesnt make any sense. What i dont get is what the concrete differences are. Its stuff like "actors cant be moved by scripts and pawns can" this is what im looking for. Citing the official documentation doesnt really help since anyone who posted a question here is very likely to already have checket it. Sorry. Thanks for helping though.

I also dont get how unreal handles players since ive always been used to writing a script that makes an object with an attached camera move and rotate depending on input. Not all these fancy things that unreal introduce.

avatar image Ockertvs Mar 31 '15 at 03:05 PM

Hi Indiana , Epic , the developers of Unreal Engine 4 are game developers them self and so , the Game Development Process in Unreal Engine 4 is really well thought out.

Simple Examples:

Actor:Lets say you have a "Door" mesh(3D Model) you want it to be placed around the level , with the ability to be opened or closed by the player.You would create an Actor Class "Door"

Pawn:Is the recommended Class for a "Playable Actor" , controlled by the Player or AI.

Character:Is a more advanced form of a Pawn Class."A Character is designed for a vertically-oriented player representation that can walk, run, jump, fly, and swim through the world".

So it is possible to make a Playable Character from the Actor class , but to implement all the basics needed for a Character is going to be hard work, and thanks to the team at Epic, Unreal Engine has a Character Class with all the basics of a Playable Character already implemented for the developer.

Look through the Content Examples.

You'll get it eventually.Dont give up.

Ockert

avatar image Indiana Mogens Mar 31 '15 at 03:18 PM

Thanks! Quite a big help. Thanks a lot mate!

(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