2 turtles on same patch, how can I find the one by another

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

2 turtles on same patch, how can I find the one by another

jojolovyou
This post has NOT been accepted by the mailing list yet.
Now there is 2 different breed turtles on same patch, how can I find the one by the another.
I try to do using code blew, but it seems the initialNode does not be the turtle(node) I want.

breed [vehicles vehicle]
breed [nodes node]

set herepatch roads with [any? aircrafts-on self]
  ask herepatch [
    set initialNode nodes-here
  ]