# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdquest.gitbook.io/godot-3-steering-ai-framework-reference/code-reference/gsaiblend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
