# Plant

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

{% hint style="warning" %}
**GAME MAKER 0.10 UPDATE**

This logic was moved from a behaviour to a component for more interconnection of logic. Documentation is being updated.
{% endhint %}

<figure><img src="https://4251931498-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO_j99BJEXK4zHqxgqS%2F-MP1V5HZc77vgEdBGwAH%2F-MP2-9_L3L8f5BduPwM1%2FPlant.gif?alt=media&#x26;token=4cf617ae-d785-4a43-bc86-509984a63ed6" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components
{% endhint %}

## ![](/files/2ShescWW5sypV1vtpSpE) Plant <mark style="color:yellow;">\[MP]</mark>

* Can be destroyed once it receives a message (for instance, an NPC on fire can broadcast a message “destroyplant”, destroying every plant near it)

## Common Uses

* Any Object to be "harvested" or "collected" by another Object with Farmer Behaviour without playing a destroy animation (does not have to be a plant)
* A Parent Object when Child Objects need to be removed without playing a destroy animation

## Communications

<table data-header-hidden><thead><tr><th width="278"></th><th></th></tr></thead><tbody><tr><td><p><strong>Inputs:</strong></p><p>Multiple Messages</p></td><td><p><strong>Outputs:</strong></p><p>Object is destroyed</p></td></tr></tbody></table>

<img src="/files/q60jz6S85W7mTsd0ihg3" alt="" class="gitbook-drawing">

## Parameters

| Options                          | Details                                                                                                                                                                                                       |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](/files/6rA1H2RNRYWr4VmD0N7j) | <p><strong>Message to Destroy</strong> (dropdown) - one or more Messages can destroy the Plant.<br><br>Press <img src="/files/9r1klje7KtQEtYjVfydZ" alt=""> to remove default or other unwanted Messages.</p> |


---

# 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.sandbox.game/en/creator/game-maker/docs/components/triggers/plant.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.
