@name 
@inputs Active W A S D Shift
@outputs 
@persist 
@trigger all

if(first()){
holoCreate(1)# body
holoCreate(2)# wing 1
holoCreate(3)# wing 2
holoCreate(4)# tail
Body = holoEntity(1)
Wing1 = holoEntity(2)
Wing2 = holoEntity(3)
Tail = holoEntity(4)
######## Body ########
holoColor(1, vec(0,255,0), 255)
holoModel(1, "sphere")
holoPos(1, entity()os() + vec(0,0,30))
holoScale(1, vec(10,1,1))
holoParent(1, entity())
######## Wing 1 ########
holoColor(2, vec(255,0,0), 255)
holoModel(2, "pyramid")
holoPos(2, entity()os() + vec(20,8,30))
holoAng(2, ang(90,0,0))
holoScale(2, vec(0.5,0.5,3))
holoParent(2, entity())
######## Wing 2 ########
holoColor(3, vec(255,0,0), 255)
holoModel(3, "pyramid")
holoPos(3, entity()os() + vec(20,-8,30))
holoAng(3, ang(90,0,0))
holoScale(3, vec(0.5,0.5,3))
holoParent(3, entity())
######## Tail ########
holoColor(4, vec(0,0,255), 255)
holoModel(4, "pyramid")
holoPos(4, entity()os() + vec(55,0,30))
holoAng(4, ang(90,0,0))
holoScale(4, vec(1,1,3))
holoParent(4, entity())
}
runOnTick(1)
if(W == 1){
holoPos(1, Bodyos() + Body:forward() * 5)
holoPos(2, Wing1os() + Wing1:forward() * 5)
holoPos(3, Wing2os() + Wing2:forward() * 5)
holoPos(4, Tailos() + Tail:forward() * 5)
}
