Paste #73908: Homing Bow 2

Date: 2020/08/05 12:14:46 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


homing_bow:
  type: item
  material: bow
  display_name: Homing Bow
homing_function:
  type: world
  events:
    on player left clicks air with:homing_bow:
    - define target <player.precise_target||null>
    - if target != null:
      - narrate "You're targeting <[target].name>!"
    on player shoots homing_bow:
    - if target != null:
      - while <context.projectile.location> != <[target].location>