auQuiksilver / Apex-Framework

Apex Framework
MIT License
85 stars 48 forks source link

Flag Textures #24

Open Burbonizer opened 2 years ago

Burbonizer commented 2 years ago

Hi, I am trying to add a flagpole to my base and i have placed the jpg in the root of the mission files and added this to the init of the flagpole.

this setFlagTexture "flag.jpg"

It works fine in any other scenario but on the I&A framework i get a empty flagpole with no flag attached.

I tried adding the flag to the parameters file and that too did nothing.

_community_flag_texture = 'flag.jpg'; // Community texture applied to some flags. Default: 'a3\data_f\flags\flag_nato_co.paa' _default_flag_texture = 'flag.jpg'; // Texture applied to friendly flags. Default: 'a3\data_f\flags\flag_nato_co.paa'

What could be removing my flag considering that i am writing the setflagtexture in the init? I jumped into the VR and placed the same code and it worked. So i must think that something in the I&A framework is removing this.

auQuiksilver commented 2 years ago

If you are using the default base, everything is wiped clean from the map before it generates. You can prevent things from being wiped clean (while still using default base) by putting this in the init of the object:

this setVariable ["QS_missionObject_protected",true,false];