@name Interactive Targeting
@inputs N
@outputs Targets:array TID Do
@persist Players:array Chat1:string Last
Time = 250
interval(Time)
Command = "/menu/"
Menu = "open"
Attack = "get" 
Do = 0
List = "list"
Go = "go!"
Coords = "positions"
PlyVar = "players"
P1 = "P1"
P2 = "P2"
P3 = "P3"
P4 = "P4"
P5 = "P5"
P6 = "P6"
P7 = "P7"
P8 = "P8"
P9 = "P9"
P10 = "P10"
S = " "
Origin = entity():pos()
findInSphere(Origin,1000000)
findSortByDistance(Origin)
findIncludeClass("player")
Players = findToArray()

Concat = array()
if (Players:count()>0) {
Concat:setString(1,"Targets: ")
Concat:setString(2,P1+S)
Concat:setString(3,Players:entity(1):name()+S)
}
if (Players:count()>1) {
Concat:setString(4,S+P2+S)
Concat:setString(5,Players:entity(2):name())
}
if (Players:count()>2) {
Concat:setString(6,S+P3+S)
Concat:setString(7,Players:entity(3):name())
}
if (Players:count()>3) {
Concat:setString(8,S+P4+S)
Concat:setString(9,Players:entity(4):name())
}
if (Players:count()>4) {
Concat:setString(10,S+P5+S)
Concat:setString(11,Players:entity(5):name())
}
if (Players:count()>5) {
Concat:setString(12,S+P6+S)
Concat:setString(13,Players:entity(6):name())
}
if (Players:count()>6) {
Concat:setString(14,S+P7+S)
Concat:setString(15,Players:entity(7):name())
}
if (Players:count()>7) {
Concat:setString(16,S+P8+S)
Concat:setString(17,Players:entity(8):name())
}
if (Players:count()>8) {
Concat:setString(17,S+P9+S)
Concat:setString(18,Players:entity(9):name())
}
if (Players:count()>9) {
Concat:setString(18,S+P10+S)
Concat:setString(19,Players:entity(9):name())
}
Chat = entity():owner():lastSaid()
Cur = curtime()
When = entity():owner():lastSaidWhen()
Last = Cur - When
Time1 = Time/1000
C = Chat:find(Command)
M = Chat:find(Menu)
A = Chat:find(Attack)
L = Chat:find(List)
Pv = Chat:find(PlyVar)
Crd = Chat:find(Coords)
C1 = Chat:find(P1)
C2 = Chat:find(P2)
C3 = Chat:find(P3)
C4 = Chat:find(P4)
C5 = Chat:find(P5)
C6 = Chat:find(P6)
C7 = Chat:find(P7)
C8 = Chat:find(P8)
C9 = Chat:find(P9)
C10 = Chat:find(P10)
G = Chat:find(Go)
K = Last < Time1 
if (C & M & K) {print(Concat:concat())}
if (C & A & K) {
Targets = array()
E = 1
if (C1) {Targets:setEntity(E,Players:entity(1)) E+=1}
if (C2) {Targets:setEntity(E,Players:entity(2)) E+=1}
if (C3) {Targets:setEntity(E,Players:entity(3)) E+=1}
if (C4) {Targets:setEntity(E,Players:entity(4)) E+=1}
if (C5) {Targets:setEntity(E,Players:entity(5)) E+=1}
if (C6) {Targets:setEntity(E,Players:entity(6)) E+=1}
if (C7) {Targets:setEntity(E,Players:entity(7)) E+=1}
if (C8) {Targets:setEntity(E,Players:entity(8)) E+=1}
if (C9) {Targets:setEntity(E,Players:entity(9)) E+=1}
if (C9) {Targets:setEntity(E,Players:entity(10)) E+=1}
}
TID = Targets:entity(N):id()
if (C & L & Pv & K) {print(Targets:concat())}
if (C & L & Crd & K) {

E = 1
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
if (Targets:entity(E)) {print(entity(E):pos():x() +S +entity(E):pos():y() +S +entity(E):pos():z()) E +=1}
}
if (G & K) {Do = 1}














