> For the complete documentation index, see [llms.txt](https://gdquest.gitbook.io/godot-3-steering-ai-framework-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gdquest.gitbook.io/godot-3-steering-ai-framework-reference/code-reference/gsaiblend.md).

# GSAIBlend

**Extends:** GSAISteeringBehavior

### Description

Blends multiple steering behaviors into one, and returns a weighted acceleration from their calculations.

Stores the behaviors internally as dictionaries of the form { behavior : GSAISteeringBehavior, weight : float }

### Functions

| Type       | Name                                                            |
| ---------- | --------------------------------------------------------------- |
| void       | func add(behavior: GSAISteeringBehavior, weight: float) -> void |
| Dictionary | func get\_behavior\_at(index: int) -> Dictionary                |

### Method Descriptions

#### add

```gdscript
func add(behavior: GSAISteeringBehavior, weight: float) -> void
```

Appends a behavior to the internal array along with its `weight`.

#### get\_behavior\_at

```gdscript
func get_behavior_at(index: int) -> Dictionary
```

Returns the behavior at the specified `index`, or an empty `Dictionary` if none was found.
