Adding components to Shooter Game Sample actors?
I've been tasked with adding an ability into the Shooter Game Sample system.
I've written up the ability, tested it in a first person environment, and verified it works great. ...Unfortunately, I wrote it so that the input component is dependent on the player pawn.
I'm trying to attach this actor component file to the player pawn in the Shooter Game Sample and can't seem to edit/gain access to the player pawn being used. All of the guides and tutorials I've found have suggested selecting the player pawn in-use and converting it to a new BP, but that results in Unreal crashing to desktop.
Does anyone have a suggestion on how I can work around this?
asked Nov 26 '18 at 04:33 AM in C++ Programming
I managed to solve my original problem. I was able to add the C++ Actor Component I created to the existing Shooter Game PlayerPawn by adding a component object directly to the ShooterPlayerCharacter.cpp file.
When I run the game in the editor, I can now select the PlayerPawn and see the desired component attached.
The crash still occurs when I try to convert the PlayerPawn actor to a Blueprint but such is life.
answered Nov 30 '18 at 01:44 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here