Skip to content

# Arrow

## Overview

When the hero uses a bow, an arrow is created.

This type of entity can only be created by the engine.

An arrow entity is created when you call `hero:start_bow()`, after the bow animation. The arrow flies for a few seconds and disappears later.

It can hurt enemies and activate switches that are sensible to arrows.

Note that there are no predefined bow and arrows equipment items. It is your responsability to make them if you want. If you decide to make them, you will typically call `hero:start_bow()` from the `item:on_using()` callback of your bow equipment item.

## Methods Inherited from map entity

Arrows are particular map entities. Therefore, they inherit all methods from the type map entity.

See entity to know these methods.

## Methods of the type `arrow`

None.

## Events inherited from map entity

Events are callback methods automatically called by the engine if you define them.

Arrows are particular map entities. Therefore, they inherit all events from the type map entity.

See entity to know these events.

## Events of the type `arrow`

None.

April 1, 2025