@name Holo Owner Stuff - SayKu
@inputs 
@outputs T
@persist 
@trigger 

T++

R = randint(0,255)
G = randint(0,255)
B = randint(0,255)
Fairy = entity()
if(first())
{}


runOnTick(1)



holoCreate(1,owner():pos(),vec(1.5,1.5,1.5))
holoPos(1,owner():pos()+vec(cos(T*2)*50,sin(T*2)*50,5))
holoModel(1,"hqicosphere2")
holoMaterial(1,"models/props_combine/tpballglow")
holoAng(1,ang(T*2,T*2,T*2))
holoColor(1,vec(255,0,255))

holoCreate(2,owner():pos(),vec(1.5,1.5,1.5))
holoPos(2,owner():pos()+vec(cos(T*2)*-30,sin(T*2)*40,25))
holoModel(2,"hqicosphere2")
holoMaterial(2,"models/props_combine/tpballglow")
holoAng(2,ang(T*2,T*2,T*2))
holoColor(2,vec(255,0,0))

holoCreate(3,owner():pos(),vec(1.5,1.5,1.5))
holoPos(3,owner():pos()+vec(cos(T*2)*-50,sin(T*2)*-50,45))
holoModel(3,"hqicosphere2")
holoMaterial(3,"models/props_combine/tpballglow")
holoAng(3,ang(T*2,T*2,T*2))
holoColor(3,vec(0,0,255))

holoCreate(4,owner():pos(),vec(1.5,1.5,1.5))
holoPos(4,owner():pos()+vec(cos(T*2)*30,sin(T*2)*-40,65))
holoModel(4,"hqicosphere2")
holoMaterial(4,"models/props_combine/tpballglow")
holoAng(4,ang(T*2,T*2,T*2))
holoColor(4,vec(0,255,0))

holoCreate(5,owner():pos()+vec(0,0,0),vec(5,5,0.1))
holoParent(5,owner())
holoColor(5,vec(R,G,B))
holoModel(5,("hqicosphere2"))
holoMaterial(5,("models/props_combine/tpballglow"))

runOnChat(1)
interval(1)

if(owner():lastSaid() =="!red"){

owner():setColor(255,0,0)
}

if(owner():lastSaid() =="!green"){

owner():setColor(0,255,0)
}

if(owner():lastSaid() =="!blue"){

owner():setColor(0,0,255)
}

if(owner():lastSaid() =="!white"){

owner():setColor(255,255,255)
}

if(owner():lastSaid() =="!random"){

owner():setColor(random(255),random(255),random(255))
}

if(owner():lastSaid() =="!invisible"){
    
owner():setMaterial("models/effects/vol_light001")
owner():weapon():setMaterial("models/effects/vol_light001")
owner():setColor(0,0,0)
}

if(owner():lastSaid() =="!black"){
    
owner():setColor(0,0,0)
}

if(owner():lastSaid() =="!wireframe"){
    
owner():setMaterial("models/wireframe")
}

if(owner():lastSaid() =="!LightLinesGB"){
    
owner():setMaterial("models/XQM/LightLinesGB")
}

if(owner():lastSaid() =="!purple"){
    
owner():setColor(255,0,255)
}


if(owner():lastSaid() =="!LightLinesRed"){

owner():setMaterial("models/XQM/LightLinesRed")
}
                
holoParent(1,owner())
holoParent(2,owner())
holoParent(3,owner())
holoParent(4,owner())

## E2 PROTECTION

if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
