I place instances of a power plant on a map. I collate some of their instance variables (power output) to know how much power is being produced in total.
This does not work as expected with the attached version. What happens here is that the newly placed instance is not recognized. object.count/
is zero after placing the first object instance. After I place the second object it's 1 then 2 and so on... SO alway one behind.
I get the proper result when I use a dedicated debug event which I start with a button.
I suspect this issue is based on me using event and sub-event wrong or an async operation Create object
that I need to wait for.
I have attached the C3P file in case somebody wants to take a look.
The offending code is on event sheet 51_Area
in group Widgets Place Remove
and function e_grid_update
.
I have .logged and debugged the hell out of this thing so any pointers would be appreciated.
https://drive.google.com/file/d/1qyxwkb2nFV8Nnhl9xjJ60OlyVD524qcH/view?usp=drive_link