#(PlayAtDark) Triggering on collision?

18 messages · Page 1 of 1 (latest)

frosty basalt
#

Hello. Is there a way to trigger on collision of an npc?

I was trying proximity but couldn't find a way to make it a one block radius.

What I'm trying to achieve here is an invisible npc that when you walk into it, it runs a server command.

Also wasn't sure if this could be done somehow with only using citizens.

Thanks for any help.

atomic yewBOT
#

(PlayAtDark) Triggering on collision?

atomic yewBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

waxen lichen
#

!lang proximity

ornate oceanBOT
# waxen lichen !lang proximity

Proximity Triggers are triggered when when a player moves in the area around the NPC.

Proximity triggers must have a sub-key identifying what type of proximity trigger to use.
The three types are "entry", "exit", and "move".

Entry and exit do exactly as the names imply: Entry fires when the player walks into range of the NPC, and exit fires when the player walks out of range.

Move is a bit more subtle: it fires very rapidly so long as a player remains within range of the NPC.
This is useful for eg script logic that needs to be constantly updating whenever a player is nearby (eg a combat NPC script needs to constantly update its aim).

The radius that the proximity trigger detects at is set by !command trigger.

Group

NPC Interact Scripts

waxen lichen
#

!guide proximity

ornate oceanBOT
waxen lichen
#

Check the guide for an example ^

frosty basalt
#

Ahh the radius okay thanks.

rustic mothBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@frosty basalt