1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Player touching armorstand

Discussion in 'Skript' started by EPicAnid, Sep 14, 2019 at 2:21 AM.

  1. E

    EPicAnid Member

    Joined:
    Aug 9, 2019
    Messages:
    10
    Likes Received:
    0
    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
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,007
    Likes Received:
    138
    Code (Skript):
    1. on right click on armor stand:
    2.     send "You right clicked an armor stand" to player
    3.  
    4. on damage of armor stand:
    5.     cancel event
    6.     send "You left clicked an armor stand" to attacker
     
  3. E

    EPicAnid Member

    Joined:
    Aug 9, 2019
    Messages:
    10
    Likes Received:
    0

    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
     
  4. T

    TrickDev Member

    Joined:
    Monday
    Messages:
    4
    Likes Received:
    0
    Hope This will help!
    Code (Text):
    1. every tick:
    2.     loop all players:
    3.         loop all entities in radius 1 of loop-player:
    4.             if loop-entity is armor stand:
    5.                 #Do Stuff
     
Loading...