@name LAMP
@inputs 
@outputs LIGHT1 LIGHT2 LIGHT3
@persist Array:array Distance Result:string Times Damage HoloDist Circle X Y
@trigger 
@model models/props_interiors/Furniture_Lamp01a.mdl

interval(1)
timer("check",160)
Distance = 30
Result = ""
Times = 100
Damage = 20
interval(2000)
if (clk("check")) {
    findInSphere(entity():pos(), Distance)
    Array = findToArray()
    for(I=1,Array:count()) {
        if(Array[I,entity]:isPlayer()) {
            if(Array[I,entity]:isAlive()) {
                if (Result != "whip") {     
                    if(owner():keyUse()){             

particle("vol/light",entity())
}}}}}}
else{timer("test",15000)}


if(clk("test")){
    LIGHT1 = 0
    LIGHT2 = 0
    LIGHT3 = 0
}
