Thanks William for your thoughts,
Originally Posted by _William
In this case Maturin isn't specifying a custom mortar, but allowing the AIFO module to create the west sides default mortars (after looking at his actual mission). The AIFO module creates a new group with only mortars and their gunners. The FO's remain in their existing groups so they cannot be part of the artillery module error. The strangest part is when I run Maturin's mission I don't actually get the error?
in the module where I create an artillery module that I sync with the created artillery units I use BIS_ARTY_F_initVehicle to initialise the leader of the artillery group.
I actually went back to your mission to see if there was another easy solution. You actually already had it.
This works, the AIFO module doesn't do anything like revealing a unit. The AI will only know about a unit through the the default acquisition processes of the game engine.
Originally Posted by maturin
Try putting in your code you have for those other units in your FO, in the small test I did it worked fine.
dostop this; hideobject this; this setunitpos "up"; this allowdamage false;