Corrected [try_]spawn_actor keyword name

This commit is contained in:
Daniel 2024-08-01 16:21:29 +02:00
parent f1fa9b19bd
commit 85ed177b81
No known key found for this signature in database
GPG Key ID: F97A473A770892FC
1 changed files with 2 additions and 2 deletions

View File

@ -4880,7 +4880,7 @@ class World():
"""Resets the cycle of all traffic lights in the map to the initial state.
"""
def spawn_actor(self, blueprint: ActorBlueprint, transform: Transform, attach_to: Optional[Actor] = None, attachment=AttachmentType.Rigid) -> Actor:
def spawn_actor(self, blueprint: ActorBlueprint, transform: Transform, attach_to: Optional[Actor] = None, attachment_type=AttachmentType.Rigid) -> Actor:
"""The method will create, return and spawn an actor into the world. The actor will need an available blueprint to be created and a transform (location and rotation). It can also be attached to a parent with a certain attachment type.
Args:
@ -4905,7 +4905,7 @@ class World():
`int`\n
"""
def try_spawn_actor(self, blueprint: ActorBlueprint, transform: Transform, attach_to: Optional[Actor] = None, attachment=AttachmentType.Rigid) -> Actor:
def try_spawn_actor(self, blueprint: ActorBlueprint, transform: Transform, attach_to: Optional[Actor] = None, attachment_type=AttachmentType.Rigid) -> Actor:
"""Same as `spawn_actor()` but returns `None` on failure instead of throwing an exception.
Args: