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"

Controlling a main actor and a sub actor by two player controller

I currently have a "main" actor (a car) which has a sub actor (a turret). I want to let two player control the vehicle. One controls the vehicle (drives around). One controls the turret (can rotate the turret and shoot). i tried to possess the car with one player controller and the child actor with a second player controller, but the child actor just detaches from the car. i guess one actor (and its sub actors) can only be controlled by one controller. i guess one solution would be to teleport the turret to the car (every few ticks or so). but i imagine that could create massive lags and network traffic. another solution i could think of is to attach the car and the turret seperatly onto a "super actor". but i havent tried that yet. is there a better way to do this? will the lag/traffic be a problem?

Product Version: UE 4.12
more ▼

asked Aug 15 '16 at 08:18 PM in Blueprint Scripting

avatar image

1 2

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

1 answer: sort voted first

Hi NeedX,

For something like this, the best way to do it would be to create two separate pawns, have the first pawn controlled by the first player, the second by the second. The second pawn must be attached to the first, which you can do with "Attach Actor to Actor":

alt text

This should allow the second actor to maintain its position above the first pawn's position.

attachactor.png (34.0 kB)
more ▼

answered Aug 15 '16 at 08:26 PM

(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