@name Instant Wall Maker
@inputs 
@outputs Boxs:array
@persist Boxs:array 
@trigger 
Box="models/props_junk/cardboard_box001a.mdl"
Size=vec(32.856075286865,39.278095245361,24.536811828613)
Xheight=20
Zheight=4
Yheight=0
Frozen=0
Boxs=array()
for(X=1,Xheight){
    for(Z=1,Zheight){
        Boxs:pushEntity(propSpawn(Box,entity():pos()+Size*vec(X,0,Z),Frozen))
        
    }
}
runOnChat(1)
K=chatClk()
Chat=owner():lastSaid()

if(Chat=="no wall"){
    for(C=1,Boxs:count()){
        Boxs[C,entity]:propDelete()
    }
    selfDestruct()
}
