My Mobile Flak 88 again 
I have adapted the goldrush tank routine to my Mobile Flak and it works great as far as I stay with the basics of tank stuff.
Unfortunately, the flak is a lot more complicated than the tank.
There are some conditions that, if they apply, will stop the tank from moving. If the feet are down, the turret is not facing the front and the cannon is not down will stop the tank from moving.
My problem is that everything is working if I donāt push a button to activate something while there is a part moving.
In more details.
The test map has buttons to move the parts up/down/left/right so I can test if everything is working. Now, if I push the button to move a leg up/down and wait until it finishes, everything is fine. But if I activate a button while thereās already something moving everything after the āwait 5000ā is skipped basically breaking the script, not setting stuff.
Thereās probably a better way to do it but it seems Iāve been working on it too much and became blind to other ways of doing it.
Help would be appreciated.
Hereās the left foot part in mflak{} scriptblock as an exemple:
This bit is used to move the left foot up/down.
trigger lfoot_check_move // check for moving flak88 left foot up/down
{
accum 1 abort_if_bitset 7 // are we dead?
accum 6 abort_if_bitset 1 // if foot already moving
globalaccum 1 abort_if_not_equal 0 // scriptlock'ed out?
trigger mflak lfoot_check_move_up
accum 6 abort_if_bitset 2 // if just moved up
trigger mflak lfoot_move_down
}
trigger lfoot_check_move_up
{
accum 6 abort_if_bitset 0 // already up
trigger mflak lfoot_move_up
}
trigger lfoot_move_up // move the flak88 left foot up
{
trigger left_foot lfoot_lockout // set script locked out
accum 6 bitset 1 // it's moving
trigger left_foot up
wait 5000
accum 6 bitset 0 // tag it up
accum 6 bitreset 1 // done moving
trigger left_foot lfoot_lockout_stop // unset script locked out
}
trigger lfoot_move_down // move the flak88 left foot down
{
trigger left_foot lfoot_lockout // set script locked out
accum 6 bitset 1 // it's moving
trigger left_foot down
wait 5000
accum 6 bitreset 0 // tag is down
accum 6 bitreset 1 // done moving
trigger left_foot lfoot_lockout_stop // unset script locked out
}
The left_foot stuffā¦
left_foot
{
spawn
{
wait 175
globalaccum 1 set 0
attachtotag mflak tag_leftf
}
trigger down
{
faceangles 0 0 0 5000
}
trigger up
{
faceangles 0 0 85 5000
}
trigger lfoot_lockout
{
globalaccum 1 inc 1
}
trigger lfoot_lockout_stop
{
globalaccum 1 inc -1
}
}
The script is nicely commented and easy to follow I think so Iāll refrain from commenting it more. As I said above, if I activate the right foot while the left foot is moving, the lines after āwait 5000ā in the left foot wonāt be read. Breaking the whole left foot routine since accums are not set/reset.
Ideas and suggestions?
Thanks in advance.

Oh well⦠as long as it works. Hereās what I did.