Paste #86238: Sneak-On-Radius NPC

Date: 2021/07/06 08:15:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste Edit Of Paste 80162 View Edit Report
Copy Link


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


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