Guest User

Untitled

a guest
Jan 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //this function is recursivly called from/for all branches on a tree
  2.  
  3. tid = global.tid
  4. tid.slots +=1
  5. tid.slot[tid.slots] = id
  6.  
  7.  
  8. if(open = true){
  9. //add branches
  10. n=1
  11. while(n<= branches){
  12. //tid.slots +=1
  13. //tid.slot[tid.slots] = branch[n]
  14. //cause it gets filled when you call it, if you do it here it gets added twice
  15. with(branch[n]){
  16. tree_fill() // recursive function lol
  17. }
  18. n+=1
  19. }
  20. //add leaves
  21. n=1
  22. while(n<= leaves){
  23. tid.slots +=1
  24. tid.slot[tid.slots] = leaf[n]
  25. n+=1
  26. }
  27.  
  28.  
  29. }
Add Comment
Please, Sign In to add comment