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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I change player controller for strategy game.

Hello my name is Lewis Foo and I'm currently making a strategy game for a paid project but I've come in to a bit of difficulty with my player controller. I start off as the usual strategy game controller with a top down view of the world and I can click on units and they highlight. I've managed to get the current player controller to possess a unit when I press e on a unit but it still has all the top down view controls how do I make it so that the possessed unit has first person controls after I possess it?

Product Version: Not Selected
more ▼

asked Oct 19 '14 at 09:01 PM in C++ Programming

avatar image

13 2 3 7

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

1 answer: sort voted first

you need to handle the input inside of the pawn. so when you are in the top down view selecting units you want a pawn that just has a camera and can fly around and handle the flying around input in that pawn class. so for example you want to have your classes set out somewhat like this:

 public class AMasterCamera : public APawn
 public class AInfantryUnit : public ACharacter
 public class AVehicleUnit : public AWheeledVehicle


more ▼

answered Oct 21 '14 at 09:30 PM

avatar image

128 10 17 20

avatar image thefoothing Oct 22 '14 at 05:24 PM

So handle all the input in the player classes. How would I get mouse position of controlling player inside the characters?

avatar image KieranChandler Oct 23 '14 at 09:18 AM

You mean get the position of the pawn in screen space? for selecting of pawns right?

(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