I have run into a rather annoying problem.
I have a series of objects, which are in the family buildings.
I run an event so that | on start of layout & for each "buildings" >> add 1 to count_waypoint | this returns 14
There are absolutely no other references to count_waypoint, and the system only shows 7 objects total for the family "buildings"
When I switch the target family to another family "buttons_UI" which has 5 objects, count_waypoint returns 5
I have deduced, by switching the family and switching the objects within the family around, that the problem is only occuring for objects that originally start on the screen.
all building objects begin in the layout, while buttons_UI is loaded from a different layout.
** even weirder... originally this was set up to spawn a waypoint at each building, and set an instance variable (index) to count_waypoint when spawned.
However the index variables for these waypoints began at 8, so the event was running 7 times (all while adding 1 to counts_waypoint) without spawning a single waypoint. In the end there were 7 waypoints, 7 "buildings", and count_waypoint = 14....
I have had several other developers look at this, and no one can find the answer. I replicated the events in a separate project and it works fine.
Anyone know what is going on?