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.

Help with target npc?

Discussion in 'Skript' started by chimchambi, Dec 4, 2019.

  1. chimchambi

    chimchambi Member

    Joined:
    Dec 4, 2019
    Messages:
    2
    Likes Received:
    0
    Hi. Does anyone know how to check if player is targeting a npc?
    thx

    using skript 2.2
     
    #1 chimchambi, Dec 4, 2019
    Last edited: Dec 4, 2019
  2. ZeyKra_

    ZeyKra_ Member

    Joined:
    Thursday
    Messages:
    22
    Likes Received:
    1
    maybe that

    Bc I use this in my ac skript but i'm sure u can do it easier but i don't know how :/

    Code (Text):
    1. command /test [<player>]:
    2.     trigger:
    3.         loop all entities :
    4.             "%uncoloured name of loop-entity%" is "urnpcname"
    5.             if target of arg 2 is loop-entity:
    6.                 send "true"
     
Loading...