@name Pokeball
@inputs ResetOn Reset 
runOnTick(1)


holoCreate(1)
     holoPos(1,entity():pos()+vec(0,0,60))
     holoScale(1,vec(5,5,5))
     holoColor(1,vec(255,255,255))
     holoParent(1,entity())
     holoModel(1,"dome2")
     holoAng(1,ang(0,0,-180))

holoCreate(2)
     holoPos(2,entity():pos()+vec(0,0,60))
     holoScale(2,vec(5,5,5))
     holoColor(2,vec(255,0,0))
     holoParent(2,entity())
     holoModel(2,"dome2")
    
holoCreate(3)
     holoPos(3,entity():pos()+vec(0,0,60))
     holoScale(3,vec(-5.3,-5.3,-5.3))
     holoColor(3,vec(0,0,0))
     holoParent(3,entity())
     holoModel(3,"hqicosphere2")
    
holoCreate(4)
     holoPos(4,entity():pos()+vec(30,0,60))
     holoScale(4,vec(0,1.5,1.5))
     holoColor(4,vec(0,0,0))
     holoParent(4,entity())
     holoModel(4,"hqicosphere2")
    
holoCreate(5)
     holoPos(5,entity():pos()+vec(30.2,0,60))
     holoScale(5,vec(0,1.3,1.3))
     holoColor(5,vec(255,255,255))
     holoParent(5,entity())
     holoModel(5,"hqicosphere2")

holoCreate(6)
     holoPos(6,entity():pos()+vec(30.4,0,60))
     holoScale(6,vec(0,1,1))
     holoColor(6,vec(0,0,0))
     holoParent(6,entity())
     holoModel(6,"hqicosphere2")
    
holoCreate(7)
     holoPos(7,entity():pos()+vec(30.6,0,60))
     holoScale(7,vec(0,0.8,0.8))
     holoColor(7,vec(255,255,255))
     holoParent(7,entity())
     holoModel(7,"hqicosphere2")
    
holoCreate(8)
     holoPos(8,entity():pos()+vec(0,0,60))
     holoScale(8,vec(5.1,5.1,0.1))
     holoColor(8,vec(0,0,0))
     holoParent(8,entity())
     holoModel(8,"hqcylinder2")

holoCreate(9)
     holoPos(9,entity():pos()+vec(30.8,0,60))
     holoScale(9,vec(0,0.6,0.6))
     holoColor(9,vec(0,0,0))
     holoParent(9,entity())
     holoModel(9,"hqicosphere2")
    
runOnChat(1)

    if(owner():lastSaid() == "Pokeball Goo"){
        holoAng(2,ang(-75,0,0))
        holoDelete(4)
        holoDelete(5)
        holoDelete(6)
        holoDelete(7)
        holoDelete(8)
        holoDelete(9)
        holoPos(2,entity():pos()+vec(1,0,60))
        
        holoCreate(10)
        holoPos(10,entity():pos()+vec(3,0,50))
        holoModel(10,"hqicosphere2")
        holoScale(10,vec(0.3,0.3,0.3))
        holoColor(10,vec(0,156,255))
        
        holoCreate(11)
        holoPos(11,entity():pos()+vec(13,0,55))
        holoModel(11,"hqicosphere2")
        holoScale(11,vec(0.3,0.3,0.3))
        holoColor(11,vec(0,156,255))

        holoCreate(12)
        holoPos(12,entity():pos()+vec(23,0,60))
        holoModel(12,"hqicosphere2")
        holoScale(12,vec(0.3,0.3,0.3))
        holoColor(12,vec(0,156,255))
        
        holoCreate(13)
        holoPos(13,entity():pos()+vec(33,0,65))
        holoModel(13,"hqicosphere2")
        holoScale(13,vec(0.3,0.3,0.3))
        holoColor(13,vec(0,156,255))
        
        holoCreate(14)
        holoPos(14,entity():pos()+vec(43,0,63))
        holoModel(14,"hqicosphere2")
        holoScale(14,vec(0.3,0.3,0.3))
        holoColor(14,vec(0,156,255))
        
        holoCreate(15)
        holoPos(15,entity():pos()+vec(53,0,62))
        holoModel(15,"hqicosphere2")
        holoScale(15,vec(0.3,0.3,0.3))
        holoColor(15,vec(0,156,255))
        
        holoCreate(16)
        holoPos(16,entity():pos()+vec(63,0,60))
        holoModel(16,"hqicosphere2")
        holoScale(16,vec(0.3,0.3,0.3))
        holoColor(16,vec(0,156,255))

        holoCreate(17)
        holoPos(17,entity():pos()+vec(73,0,58))
        holoModel(17,"hqicosphere2")
        holoScale(17,vec(0.3,0.3,0.3))
        holoColor(17,vec(0,156,255))
        
        holoCreate(18)
        holoPos(18,entity():pos()+vec(83,0,56))
        holoModel(18,"hqicosphere2")
        holoScale(18,vec(0.3,0.3,0.3))
        holoColor(18,vec(0,156,255))
        
        holoCreate(19)
        holoPos(19,entity():pos()+vec(93,0,56))
        holoModel(19,"hqicosphere2")
        holoScale(19,vec(0.3,0.3,0.3))
        holoColor(19,vec(0,156,255))
        

}
     
    if (ResetOn & Reset) {
    if (entity(Reset) == owner()) {
        soundPurge()
        reset()
    
}
}




 

