Target Entity (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] target[[ed] %entitytype%] [of %entities%] [with range %number%] [blocks:ignoring blocks]

Description

The target entity of an entity from their eye height. Default range is 50.

Examples

spawn zombie at position 2 in front of player in player's instance
send target zombie of player with range 1.5 to player # doesn't print anything
send target zombie of player with range 2 to player # prints zombie

View source