Keybinding:
InputComponent->BindAction("SwitchTF", IE_Pressed, this, &AOldSchoolArenaFPSCharacter::Istorp);
Isrorp function:
void AOldSchoolArenaFPSCharacter::Istorp()
{
if (bIsTP)
{
bIsTP = false;
Distance = 300.0f;
}
else
{
bIsTP = true;
Distance = 0.0f;
}
}
Where is the error?When i press H nothing appen.All the code I posted is in the same class end setting on editor are:
ActionMappings
...
SwitchTF
H
InputComponent->BindAction("SwitchTF", IE_Pressed, this, &AOldSchoolArenaFPSCharacter::Istorp);
Isrorp function:
void AOldSchoolArenaFPSCharacter::Istorp()
{
if (bIsTP)
{
bIsTP = false;
Distance = 300.0f;
}
else
{
bIsTP = true;
Distance = 0.0f;
}
}
Where is the error?When i press H nothing appen.All the code I posted is in the same class end setting on editor are:
ActionMappings
...
SwitchTF
H
Comment