Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. with(obj_Cell)
  2. {
  3. if place_meeting(x,y,other)=true
  4. {
  5. if other.ID_MyCore!=ID_MyCore
  6. {
  7. //do action
  8. }
  9. }
  10. }
  11.  
  12. with(obj_Cell) //get every cell in the room to do the following:
  13. {
  14. if place_meeting(x,y,other)=true //if you are touching the cell that is runing the script...
  15. {
  16. if other.ID_MyCore!=ID_MyCore //...and your core is not the other cell's core
  17. {
  18. //do the thing that should be done when two foreign cells touch
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement