Paste #122904: Proximity swing animation

Date: 2024/05/21 12:51:54 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
15
16
17
18
19
20
21


miner_swing_assignment:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true radius:20
    interact scripts:
    - my_interact

my_interact:
    type: interact
    steps:
        1:
            proximity trigger:
                move:
                    script:
                    - ratelimit <npc> 10s
                    - repeat 5 as:number:
                        - animate <npc> animation:arm_swing
                        - wait 0.5s