dalikdik
(dalikdik)
October 16, 2022, 5:56am
1
Game mode option not working not loading the gamemode ( i called the level on UI)
Main Menu game mode
- human game mode (different controller)
- cat game mode (different controller)
?Game=/Game/Interaction/Interaction_GameMode.Interaction_GameMode
?Game=/Game/Maligno/GameModeCat.GameModeCat
L1z4rD89
(L1z4rD89)
October 16, 2022, 6:08am
2
Hey @dalikdik
can you try
?game=/Game/Interaction/Interaction_GameMode.Interaction_GameMode_C
or
?game=/Game/Maligno/GameModeCat.GameModeCat_C
dalikdik
(dalikdik)
October 16, 2022, 6:15am
3
its working now my issue how to change the player controller class once mode is loaded?
i have two different controller class
L1z4rD89
(L1z4rD89)
October 16, 2022, 6:27am
4
You usually assign your PlayerController to the GameMode before using it. Open the GameMode blueprint and assign your PlayerController.
So, 1 GameMode = 1 PlayerController. There is a function in C++ but I don’t know if this method is recommended.
What do you want to do?
dalikdik
(dalikdik)
October 16, 2022, 6:42am
5
i did assign but the issue is the 2nd doesnt work there is no controll
?game=/Game/Maligno/GameModeCat.GameModeCat_C
L1z4rD89
(L1z4rD89)
October 16, 2022, 6:48am
6
Show a picture of the GameMode like this:
dalikdik
(dalikdik)
October 16, 2022, 6:55am
7
hi this is my settings i have three game modes
1st - main menu
2nd - Cat character
3rd - Human character
L1z4rD89
(L1z4rD89)
October 16, 2022, 6:58am
8
So, you have the standard PlayerController for your Cat. Are the controls in the Cat pawn?
dalikdik
(dalikdik)
October 16, 2022, 7:00am
9
yes standard controller for cat, yes its in cat pawn.
by the way where can i see the the playerController (standard) not able to locate it
L1z4rD89
(L1z4rD89)
October 16, 2022, 7:12am
10
So the Cat gets spawned but you can’t control it? Do your Inputs work inside the Pawn? Use PrintStrings to check if your inputs work. Maybe your Pawn is stuck after the spawn.
You can’t see the default PlayerController like a blueprint. It is a C++ Class, you can either search for it in the ContentBrowser or go to /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h
dalikdik
(dalikdik)
October 16, 2022, 7:27am
11
HI
the controls works if i load directly the map of the cat using cat mode, but if i load it from the top with main menu, the controls are gone
L1z4rD89
(L1z4rD89)
October 16, 2022, 8:49am
12
Did you try to add PrintString?
Are you using any Event/Function on EventBeginPlay?