Add wheelchair variation

This commit is contained in:
Blyron 2024-07-08 09:50:31 +02:00 committed by Blyron
parent 4da0c74154
commit e349dc79c9
2 changed files with 12 additions and 5 deletions

View File

@ -12,11 +12,11 @@ namespace carla {
namespace rpc {
enum class ActorAttributeType : uint8_t {
Bool,
Int,
Float,
String,
RGBColor,
Bool = 1u,
Int = 2u,
Float = 3u,
String = 4u,
RGBColor = 5u,
SIZE,
INVALID

View File

@ -1613,6 +1613,13 @@ void UActorBlueprintFunctionLibrary::MakePedestrianDefinition(
IsInvincible.bRestrictToRecommended = false;
Definition.Variations.Emplace(IsInvincible);
FActorVariation WheelChairVariation;
WheelChairVariation.Id = TEXT("use_wheelchair");
WheelChairVariation.Type = EActorAttributeType::Bool;
WheelChairVariation.RecommendedValues = { TEXT("true"), TEXT("false") };
WheelChairVariation.bRestrictToRecommended = false;
Definition.Variations.Emplace(WheelChairVariation);
Success = CheckActorDefinition(Definition);
}