Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag Textures #24

Open
Burbonizer opened this issue Aug 28, 2022 · 1 comment
Open

Flag Textures #24

Burbonizer opened this issue Aug 28, 2022 · 1 comment

Comments

@Burbonizer
Copy link

Burbonizer commented Aug 28, 2022

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
Copy link
Owner

  • Are you using the default built-in base or creating a custom base?

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];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants