Paste #80162: Sneak-On-Radius NPC

Date: 2021/01/30 06:07:23 UTC-08: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


my_npc:
    type: assignment
    debug: false
    actions:
        on assignment:
        - trigger name:proximity state:true radius:15
        on spawn:
        - wait 1s
        - sneak <list[<npc>].include[<npc.name_hologram_npc||<list>>].include[<npc.hologram_npcs||<list>>]> start fake
        on enter proximity:
        - sneak <list[<npc>].include[<npc.name_hologram_npc||<list>>].include[<npc.hologram_npcs||<list>>]> stopfake
        on exit proximity:
        - sneak <list[<npc>].include[<npc.name_hologram_npc||<list>>].include[<npc.hologram_npcs||<list>>]> start fake