lol - i figured that out by trying / wondering and trying more:
First i made it like we had it before and i saw that east units weren't included to
the array.
This made me think that west and east units can't be together in an array.
But i remember from my MOTAG (MOre Than A Group) that i head already east and west
units together in an array -> so this couldn't have been the reason.
Then i thought that maybe you cannot add them together into arrays - i tried to manually
setup the array:
unit_array = [[w1,"mark1"],[w2,"mark2"],[e1,"mark4"],[e2,"mark5"]]and all units were included to the array when i displayed it ingame.
Then i thought to tell you that but suddenly a flash came into my brain: who's init field gets
really executed first?
So i tried the following:
I've put:
a = 1
in player's inti field (the first unit i placed onto the map)
and by adding an east unit with an init field like: a = 2
Then showing the value of a on screen resulted in: 1
Then i made: a = 1 with the east unit
and a = a + 2
with the player.
Result showing up on screen was: 3
This lead me to the conclusion that east units get executed before west units no matter
whom of them has been placed first.
Like i said, maybe it's because
East comes before
West in alphabetical order.
However - we got it finally working and i could also learn something new.
Isn't OFP just wonderful? :thumbsup:
~S~ CD