In the mod I have a gun which simulates a way to call in an airstrike (battleType: 1, arcing, ... essentially a grenade launcher). Enemies shouldn't react on the action_unit.
So I wrote a script that looked exactly like
in the first code block hereOnce the gun is fired, the reactionWeaponAction script continues running for battle_action == 0 (BA_NONE) && move == 0 (walking) || move == 1 (running, didn't test flying) as observed in the openxcom.log. This means that once the gun is fired, you can use up all your TUs for movement and not be fired at. Once you shoot another gun which isn't using this script, things work normal again. See the attachment for a mini mod and savegame to test with.
Knowing that I can solve the problems in the script (see below).
My question is: Is it intended that reactionWeaponAction continues to trigger on movement after the script was called the first time?
Thanks for looking at it.