Player touching armorstand

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

EPicAnid

Member
Aug 9, 2019
10
0
0
39
I need a way to detect when a player touches an armor stand please help

anyone who solves this problem will get a rank on my server once it is online
 
code_language.skript:
on right click on armor stand:
    send "You right clicked an armor stand" to player

on damage of armor stand:
    cancel event
    send "You left clicked an armor stand" to attacker
 
code_language.skript:
on right click on armor stand:
    send "You right clicked an armor stand" to player

on damage of armor stand:
    cancel event
    send "You left clicked an armor stand" to attacker


ironically this is something else I needed to figure out how to do, however I am trying to write code that detects when a player comes in a specific radius of an armor stand. Sorry for not being clear
 
Hope This will help!
Code:
every tick:
    loop all players:
        loop all entities in radius 1 of loop-player:
            if loop-entity is armor stand:
                #Do Stuff
 
Status
Not open for further replies.