Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //give_next_tile_of_path(target_tile);
- /*
- This script gives the next gridspacer on a path from a tiler to a target using parentage
- defined in the script movement_range.
- */
- cur_gridspacer = argument0;
- endwhile = false
- while (endwhile = false)
- {
- next_gridspacer = cur_gridspacer.parent;
- if next_gridspacer.parent = noone//and next_gridspacer.n = n and next_gridspacer.m = m
- {
- return(cur_gridspacer);
- }
- else
- {
- cur_gridspacer = next_gridspacer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement