################
# > Dancefloor: A disco floor.
# > How to use: Spawn it and rave.
################

@name Holo Thing
@persist X Y I Scale O:entity OP:vector Draw Colour:vector

interval(50)

if (first()|duped()) {
    Scale=48
    X=1
    Y=1
    for (I=1,36) {
        holoCreate(I)
        holoPos(I, (entity():pos()-vec(7*Scale/2,6*Scale/2,0))+vec(X*Scale,Y*Scale,0))
        holoScale(I, vec(Scale/12,Scale/12,0.2))
        if (X==6) { X=0 Y++ }
        X++
    }
}
for (Draw=1,36) {
    Colour = vec(random(255),random(255),random(255))
    holoColor(Draw,Colour)
}
