@name Print Users
@inputs 
@outputs 
@persist Users:array 
@trigger 
interval(100)
runOnChat(1)

findByClass("player")
User = findToArray()

for (K = 1,User:count()) {
    if (changed(User[K,entity]:aimEntity() == entity()) & User[K,entity]:aimEntity() == entity()) {
       Users:pushEntity(User[K,entity])
    }
}

if (chatClk(owner()) & owner():lastSaid():lower():find("!list")) {
    hideChat(1)
    for (I = 1,Users:count()) {
        print(Users[I,entity]:name())
    }
}
