-
Hi all, //Works
void AAircraft::SetThrottleCmd(FInputActionValue const& Value)
{
for (FEngineCommand& EngineCmd : MovementComponent->EngineCommands)
{
EngineCmd.Throttle = Value.Get<float>();
}
//Or:
FString OutValue;
MovementComponent->CommandConsole(FString(TEXT("fcs/cmdHeave_nd")), FString::SanitizeFloat(Value.Get<float>()), OutValue);
}
// Don't work
void AAircraft::SetAileronsCmd(FInputActionValue const& Value)
{
FString OutValue;
MovementComponent->CommandConsole(FString(TEXT("fcs/aileron-cmd-norm")), FString::SanitizeFloat(Value.Get<float>()), OutValue);
MovementComponent->Commands.Aileron = Value.Get<float>();
}
void AAircraft::SetElevatorsCmd(FInputActionValue const& Value)
{
FString OutValue;
MovementComponent->CommandConsole(FString(TEXT("fcs/elevator-cmd-norm")), FString::SanitizeFloat(Value.Get<float>()), OutValue);
MovementComponent->Commands.Elevator = Value.Get<float>();
}
void AAircraft::SetAileronsCmd(FInputActionValue const& Value)
{
FString OutValue;
MovementComponent->CommandConsole(FString(TEXT("fcs/aileron-cmd-norm")), FString::SanitizeFloat(Value.Get<float>()), OutValue);
MovementComponent->Commands.Aileron = Value.Get<float>();
} Any suggestions would be much appreciated ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, figured it out. |
Beta Was this translation helpful? Give feedback.
Ok, figured it out.
In F450/FlightControl.xml on line 51:
<property value="0.0"> fcs/ScasEngage </property>
the property fcs/ScasEngage is defined, and later on it multiplies the pitch/roll inputs. Because it is set to 0.0 by default, it zeroes out the pitch and roll inputs if not changed.
So... just need to change this value.