Solarus quests  1.6
Quest maker's reference
Arrow

When the hero uses a hero:start_bow() bow, an arrow is created.

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

Overview

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 Methods of all entity types 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 Events of all entity types to know these events.

Events of the type arrow

None.