@name GeneratedHolo test3
@persist E:entity HOLO_INDEX
@trigger all
## FUNCTIONS ##
if(first() || duped()){

   function void createHolo(Model:string,Scl:vector,Pos:vector,Ang:angle,Color:vector,Mat:string,Skin:number){

         holoCreate(HOLO_INDEX)
         holoModel(HOLO_INDEX,Model)
         holoPos(HOLO_INDEX,Pos)
         holoAng(HOLO_INDEX,Ang)
         holoScale(HOLO_INDEX,Scl)
         holoParent(HOLO_INDEX,E)
         holoSkin(HOLO_INDEX,Skin)
         holoColor(HOLO_INDEX,Color)
         holoMaterial(HOLO_INDEX,Mat)

         HOLO_INDEX+=1
   }
}

## GENERATED ##

if(first() || duped()){

E = entity()
   createHolo("models/props_junk/plasticcrate01a.mdl",vec(1),E:toWorld(vec(-0.13,-0.11,1.88)),E:toWorld(ang(4.17,-177.45,-2.3)),vec(255,255,255),"",3)
   createHolo("models/props_junk/plasticcrate01a.mdl",vec(1),E:toWorld(vec(-4.02,-12.21,24.86)),E:toWorld(ang(34.47,124.39,-11.6)),vec(255,255,255),"",4)
   createHolo("models/props_junk/plasticcrate01a.mdl",vec(1),E:toWorld(vec(6.01,-37.25,32)),E:toWorld(ang(0.45,166.67,10.68)),vec(255,255,255),"",2)
   createHolo("models/props_c17/furniturestove001a.mdl",vec(1),E:toWorld(vec(-19.79,-57.77,5.78)),E:toWorld(ang(9.23,110.64,-0.64)),vec(255,255,255),"",0)
   createHolo("models/props_c17/furniturestove001a.mdl",vec(1),E:toWorld(vec(27.93,-4.29,5.45)),E:toWorld(ang(1.98,-165.31,0.05)),vec(255,255,255),"",0)
}
