# Stop State Machine Runner Node

Stops a State Machine node from a specific target runner.

## Description

Immediately stops a currently executing node on a State Machine Runner. The node's execution is cancelled and any ongoing actions are interrupted.

## Parameters

| Name       | Description                                                  |
| ---------- | ------------------------------------------------------------ |
| **Target** | The target GameObject that contains the State Machine Runner |
| **Node**   | The node to stop on the specified State Machine              |

## Keywords

`Stop`, `Cancel`, `Instruction`, `Action`, `State Machine`, `Runner`

## Example

```
Actions Component:
└─ Stop State Machine Runner Node
    ├─ Target: Enemy
    └─ Node: "PatrolNode"
```

This immediately stops the "PatrolNode" on the Enemy's State Machine Runner.

{% hint style="danger" %}
Stopping a node interrupts it mid-execution. Any actions that were running will be cancelled. Use with care to avoid leaving the game in an inconsistent state.
{% endhint %}


---

# 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://docs.ninjutsugames.com/game-creator-2/state-machine-2/visual-scripting/instructions/stop-node.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.
