Controlling multiple pawns RTS
I'm building an RTS and am having some difficulty setting up the relationship between the controller and the pawns. I currently use one main pawn as the camera rig that the controller posses from the beginning. After that I want to be able to select/deselect pawns and feed them instructions from the controller. Any advice is appreciated.
asked May 08 '14 at 05:48 AM in Blueprint Scripting
Getting one controller to control all the pawns looks like a bad idea to me. Create an AIController subclass (let's call it RTSPawnController), and create RTSPawnController subclasses for each of your different pawns, and spawn one controller per pawn. Then, have the player controller send commands to these RTSPawnController subclasses. For example, you might have a MoveToPoint function in the RTSPawnController which the player controller calls on selected pawns.
Follow this question
Once you sign in you will be able to subscribe for any updates here