-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add to Spawn Actor Function Attributes Map #7661
Comments
Hi @MTeuberItemis, |
Thank you for that input, that already helps a lot. There are two cases I tested with different outcomes: [everything in carla 0.9.13] CASE 1: I added following code:
ActorBlueprintFunctionLibrary.cpp: line 1124:
this resulted in a build error, when I tried to launch my locally built carla:
CASE 2 inspired by: how "is_invincible" was added, i made no changes to original pedestrianparameters.h
with this it was possible to build, but unfortunately when I tried to spawn walkers, it gave me following error:
Interestingly, "on_wheelchair" also got added to the properties mentioned in my original question:
|
it was actually a problem in another part of the walkerFactory. the second approach works just fine. thank you |
Im currently trying to add an additional boolean to a walker, so I can set it from python scripts. It should work similar to e.g. "is_invincible". In python it looks like following:
walker_bp.set_attribute('is_invincible', 'false')
I tried to figure out, how I can add such a boolean and managed to work my way to the "Spawn Actor" function in the WalkerFactory, where the following node seems to make it work:
The input, "Attributes", is unfortunately a mystery to me and I can't figure out, where I can add another ID to that Map.
When I print out the map, the following attributes are included:
Can someone help me here?
This is carla 0.9.13
The text was updated successfully, but these errors were encountered: