Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. @persist List:array I Total
  2.  
  3.  
  4.  
  5. if(first()) {
  6. List:pushString("brick/brickwall003a")
  7. List:pushString("nature/blendgrassgrass001a")
  8. List:pushString("concrete/concretefloor011a")
  9. List:pushString("concrete/concretefloor033o")
  10.  
  11. Total=List:count()
  12. I=1
  13. timer("hell",1000)
  14. }
  15.  
  16. if(clk("hell")) {
  17. # print(List[I,string])
  18. entity():setMaterial(List[I,string])
  19. entity():setColor(vec(0,0,0),1)
  20. I++
  21. timer("hell",1)
  22. }
  23. if(I>Total) { reset() }
  24.  
  25.  
  26. #Sets all materials in List to transparent until gmod is reset.
  27. #I cam across this one day when messing with materials.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement