Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @name Worker Tests
  2. @outputs LMB Selected Money I E:entity Holos:array
  3. runOnTick(1)
  4. if(first()){
  5. Selected = 1
  6. Money = 500
  7. }
  8. if(owner():keyAttack1()){
  9. LMB = 1
  10. }
  11. else{
  12. LMB = 0
  13. }
  14. if($LMB & LMB){ #if owner clicks
  15. if(Selected == 1 & Money >= 100){ #if selected is box model and there is sufficient funds
  16. Money -= 100 #take 100 away
  17. I++ #increment element
  18. holoCreate(I, owner():aimPos() + vec(0, 0, 12), vec(2, 2, 2)) #make a new holo
  19. holoModel(I, "cube") #model is cube
  20. E = holoEntity(I) #stores the holo just made in E
  21. Holos:pushEntity(E) #pushes it onto Holos array
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement