Advertisement
Ramaraunt1

Untitled

Nov 17th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //give_next_tile_of_path(target_tile);
  2. /*
  3. This script gives the next gridspacer on a path from a tiler to a target using parentage
  4. defined in the script movement_range.
  5. */
  6.  
  7. cur_gridspacer = argument0;
  8. endwhile = false
  9. while (endwhile = false)
  10. {
  11. next_gridspacer = cur_gridspacer.parent;
  12. if next_gridspacer.parent = noone//and next_gridspacer.n = n and next_gridspacer.m = m
  13. {
  14. return(cur_gridspacer);
  15. }
  16. else
  17. {
  18. cur_gridspacer = next_gridspacer;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement