— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Fires a projectile from a source entity or coordinate at a target entity, coordinate, or direction. If the source is an entity, the target is optional and, if omitted in this case, the projectile will be fired in the direction in which the source entity is currently facing.
fire_projectile(item_id, source, target, entity_id)
Argument | Description | Type | Required |
---|---|---|---|
item_id | String | Yes | |
source | Entity, Coordinate | Yes | |
target | Entity, Coordinate, Cardinal Direction | No | |
entity_id | String | No |
Results:
Use the Fire Projectile function to trigger a trap when the player steps on a tile while exploring a dungeon, firing an arrow from the wall in their direction.