Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. @name test
  2. @inputs RandomNumberNotRounded Button
  3. @outputs RandomNumberRounded
  4. @persist
  5. @trigger
  6.  
  7. entity():owner()
  8. interval(200)
  9. holoDeleteAll()
  10.  
  11. if(Button == 1)
  12. {
  13. RandomNumberNotRounded = random(1,3)
  14. RandomNumberRounded = round(RandomNumberNotRounded)
  15.  
  16.  
  17.  
  18. if(RandomNumberRounded == 1)
  19. {
  20. holoCreate(1)
  21. holoModel(1,"cone")
  22. holoPos(1,entity():pos() + vec(0,20,40))
  23. holoScale(1,vec(1,1,1))
  24. holoColor(1,vec(255,0,0))
  25. }
  26. if(RandomNumberRounded == 2)
  27. {
  28. holoCreate(2)
  29. holoModel(2,"cone")
  30. holoPos(2,entity():pos() + vec(0,-20,40))
  31. holoScale(2,vec(1,1,1))
  32. holoColor(2,vec(0,255,0))
  33. }
  34. if(RandomNumberRounded == 3)
  35. {
  36. holoCreate(3)
  37. holoModel(3,"cone")
  38. holoPos(3,entity():pos() + vec(0,0,40))
  39. holoScale(3,vec(1,1,1))
  40. holoColor(3,vec(0,0,255))
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement