i have a bit of a problem with a mission where i give the player the ability to change flags on a flagpole using the add action command.
in my init.sqs i have the following line:
flag1 setflagtexture "\Flags\Mozambique.jpg"
in the init field of the flag pole, i have:
this addAction ["Raise the US flag", "flag1.sqs"];
which runs the script:
~0.5
firstflag = true;
"1" objstatus "done";
"flag1" SetMarkercolor "ColorBlue";
flag1 removeAction 0;
hint "US flag flying at Well 1.";
flag1 setflagtexture "\Flags\usa.jpg";
; exit the script
exit
which works perfectly in the editor, but when i play it from the missions menu, the flag turns to the stars and stripes for about 2 seconds then resets itself to the previous flag texture.
can anyone tell me how to get it to stay as the us flag?
thx
filth.