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 makes an actor Autonomous Proxy?

Hey guys. So I understand roles at a pretty good level now. But I feel like there's still a gap in my knowledge about ROLE_AutonomousProxy. I know that the role of the playercontroller on the owning client is ROLE_AutonomousProxy, but i also heard that the character class that is possessed is ROLE_AutonomousProxy. Does that mean that anything that the playercontroller owns is then autonomous proxy as well? So like if I had a player controller that owned a character and the character owns a gun, would the gun be ROLE_AutonomousProxy? Basically my question is do all of the children in the ownership hierarchy of the playercontroller have ROLE_AutonomousProxy?

Product Version: UE 4.22
Tags:
more ▼

asked May 18 '19 at 11:56 PM in C++ Programming

avatar image

Brian2524
6 1 1

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

1 answer: sort voted first

Any actor that has SetAutonomousProxy(true) called on the server becomes Autonomous Proxy. Pawns will have this set when Possessed. Role is important for input to be handled correctly by things like the CharacterMovementComponent so it will pick direct input or simulated input. If you want any other Actor to be Autonomous Proxy you should call SetAutonomousProxy(true) on the Actor on the Server. Ownership is used for RPC's, Replication and visibility purposes it will not change the Role.

more ▼

answered May 19 '19 at 09:30 AM

avatar image

GarnerP57
961 3 4 8

(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