Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ///findStone(x,y)
  2.  
  3. found = false
  4.  
  5. while found = false
  6. {
  7. inst = instance_find(oStoneBlock,irandom(instance_number(oStoneBlock)-1))
  8. var path = path_add()
  9. found = mp_grid_path(global.aigrid,path,argument0,argument1,inst.x,inst.y,true)
  10. path_delete(path)
  11. }
  12. return inst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement