I try to make a mission via Lua for a special event.
There's a good change I'm doing something wrong here. But for me it looks like the refpoints put in the mission under tab "Prosecution Area" are the same ones as under "Patrol Area".
With Regards
Attachments
Prosecutio..efPoints.jpg (420.58 KiB) Viewed 212 times
So I fired up a debugger to have a look as to why it doesn't work when both are included in one statement. From what I can tell the bug is that prosecutionzone gets processed first and set, but then later when the list is wiped to re-process patrolzone the clearing of the list first wipes out the prosecutionzone entries. Both routines are sharing the same list variable which when assigned to something else it's by reference, so later when patrolzone is processed it clears the var first - which by extension then clears the prosecution-zone settings by extension and I assume unintentionally.
This is something Michael \ devs will need to look at, probably just to change the routine to use two different 'list' vars instead of sharing one.