Add wheelchair variation
This commit is contained in:
parent
4da0c74154
commit
e349dc79c9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue