How would i switch Player Controller and HUD in game play? This should be simple.
How would I go about switching the player controller and HUD while in game by box trigger? I cannot figure out how to combine them all so this will be a quick fix until then.
Player controller 1 + HUD 1 = activation of inventory/HUD Player controller 2 + HUD 2 = activation of weapons/vehicles
How would i activate player controller 2 and HUD 2 on trigger begin overlap, and go back to original controller and HUD on end overlap? Please and thank you. I am so stuck on this and have been for moths!
asked Apr 15 '18 at 06:51 PM in Using UE4
You are misunderstanding the idea behind the player controller.
The player controller is set by your Game Mode and you are not supposed to change it routinely. Controllers are usually changed during loading when a new Game Mode is initialized. Example: main menu player controller transitions to multiplayer player controller when a player enters a multiplayer match, however this is done by loading a new game state and a new level. I am not saying that is impossible (I really don't know) but I am sure that it is not recommended.
The player/ai controllers represent a useful abstraction for realizing the internal network architecture. Think of the controller objects as the place where input events originate from and player controllers are associated with a network connection in multiplayer games while the AI controllers are only run on the server.
The HUD is also set in the Game Mode which means that you have to put all your logic in the same HUD object.
I am not sure I explained it well but do ask questions if anything is unclear.
answered Aug 14 '18 at 03:49 PM
You should detach your character prom player controller, spawn new player controller, possess character, spawn new HUD, and new player controller you use new HUD.
answered Apr 16 '18 at 01:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here