@name Holo Anamatronic
@inputs 
@outputs I
@persist Timer STimer Speed Spread Sin Cos
@trigger 
@model 
interval(10)
Chip=entity()
Timer=Timer+1*3
T=Timer
STimer=STimer+1*1
ST=STimer
###############Base Head######
holoCreate(1)
holoModel(1,"models/XQM/Rails/gumball_1.mdl")
holoMaterial(1,"models/debug/debugwhite")
holoPos(1, entity():pos() + vec(0,0,90))
holoAng(1,ang(0,0,0))
###EYE 1###
holoCreate(2)
holoModel(2,"models/XQM/Rails/gumball_1.mdl")
holoMaterial(2,"models/debug/debugwhite")
holoPos(2, entity():pos() + vec(7.8,14,90))
holoAng(2,ang(0,0,0))
holoScale(2, vec(0.2,0.1,0.2))
holoColor(2,vec(155,0,0))
###EYE 2###
holoCreate(3)
holoModel(3,"models/XQM/Rails/gumball_1.mdl")
holoMaterial(3,"models/debug/debugwhite")
holoPos(3, entity():pos() + vec(-7.8,14,90))
holoAng(3,ang(0,0,0))
holoScale(3, vec(0.2,0.1,0.2))
holoColor(3,vec(155,0,0))
###Pupil 1 Left###
holoCreate(4)
holoModel(4,"models/XQM/Rails/gumball_1.mdl")
holoMaterial(4,"models/debug/debugwhite")
holoPos(4, entity():pos() + vec(-7.8,15,90))
holoAng(4,ang(0,T,0))
holoScale(4, vec(0.1,0.1,0.1))
holoColor(4,vec(0,0,0))
###PUPIL 2 RIGHT###
holoCreate(5)
holoModel(5,"models/XQM/Rails/gumball_1.mdl")
holoMaterial(5,"models/debug/debugwhite")
holoPos(5, entity():pos() + vec(7.8,15,90))
holoAng(5,ang(0,T,0))
holoScale(5, vec(0.1,0.1,0.1))
holoColor(5,vec(0,0,0))
################# CITIZEN BODY###########
holoCreate(7)
holoModel(7,"models/Humans/Group01/Female_01.mdl")
holoMaterial(7,"models/debug/debugwhite")
if(first()){
    holoCreate(1)
    holoModel(1,"models/Humans/Group01/Female_01.mdl")
    holoAnim(1,0)
    I++
    timer("changeanim",holoAnimLength(1)*1000)
}
if(clk("changeanim")){
    holoAnim(1,I)
    I++
    timer("changeanim",holoAnimLength(1)*1000)
}
#####################
if(first())
{
Speed=20
Spread=10
for(I=1,20)
{
holoCreate(I)
holoModel(I,"hqtorus")
#holoPos(I,entity():toWorld(0,0,I*12))
holoScaleUnits(I,vec(I,I,12))
}
}

Sin=sin(curtime()*Speed)*Spread
Cos=cos(curtime()*Speed)*Spread
for(I=1,20)
{
#holoPos(entity():toWorld(Sin*I,Cos*I,I*12))
}

