how to target entities with skript commands?

  • 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.

TOPYKE

Member
Sep 15, 2020
1
0
0
30
  1. Skript Version 2.5 beta-1:
  2. Skript Author: me
  3. Minecraft Version: 1.14 4
  4. It will only let me target players with my command, can someone help me?
  5. Full Code:
    command /damage <entity> [<number=1>]:
    trigger:
    damage arg 1 by arg 2

  6. Addons using (including versions):

  7. Troubleshooting:

  8. Have you tried searching the docs?
    [*]yes
    [*]Have you tried searching the Forums?
    [*]yes.
    [*]What other methods have you tried to fix it?
  9. I have tried switching to living entities.
 
set entity's target to entity
[doublepost=1600856129,1600855825][/doublepost]and if you want it in a command:

Code:
command /zombie:
    trigger:
        spawn zombie at location of player
        set last spawned zombie's target to player
 
Status
Not open for further replies.