Subject: | |
From: | |
Reply To: | |
Date: | Wed, 26 Feb 2014 20:36:53 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
On Feb 26, 2014, at 8:29 PM, Megan Olsen <[log in to unmask]> wrote:
> So is this true in all cases? Is there any way around that?
It's true in all cases. But the easy way around it is as follows:
1. Make TWO fields. Call them A and B. At start(), make them hold the same exact stuff.
2. Agents read field A to get their sensor information, but they make changes to field B.
3. A special agent, scheduled repeating, but at a later ordering (say ordering = 2), copies field B to field A, overwriting field A's contents.
Note that if your agents move around, they'll need to make sure that they don't overwrite each other in field B.
Sean
|
|
|