Hello guys, I’m trying to achieve this blueprint in c++. I tried to make a class that inherits from ALevelScript but I can’t figure out how to do this.
I was actually asking about the 'left mouse button ’ thing. The print string was just as an example
Here are the docs Input Docs
In your character you will extend or override the following in character.h/.cpp
void ACharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
check(PlayerInputComponent);
}
by adding a call like (assuming you defined “Fire” in your project settings to include your left mouse button):
PlayerInputComponent->BindAction("Fire", IE_Pressed, this, &AYourCharacter::YourCharactersFireFunction);
This binds the generic input “Fire” to a function in your character class instance.