{"name":"setFlagTexture","operator":null,"title":"setFlagTexture","type":"command","url":"https://community.bistudio.com/wiki/setFlagTexture","revid":378480,"updated":"2026-04-24T11:57:06Z","groups":["Flags"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Sets flag texture.","syntaxes":[{"syntax":"flag setFlagTexture texture","since":null,"effect":null,"exec":null,"params":[{"name":"flag","type":"Object","optional":false,"default":null,"description":"a flag pole","types":["Object"],"since":null,"text":"flag: Object - a flag pole"},{"name":"texture","type":"String","optional":false,"default":null,"description":"flag texture. If texture is `\"\"`, flag is not drawn. Custom texture can be used:\n- Prior Arma 3: Dimension 200×200, file extension .jpg\n- Since Arma 3: Dimension 512×256, file extension .paa","types":["String"],"since":null,"text":"texture: String - flag texture. If texture is `\"\"`, flag is not drawn. Custom texture can be used:\n- Prior Arma 3: Dimension 200×200, file extension .jpg\n- Since Arma 3: Dimension 512×256, file extension .paa"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"flag","types":["Object"]},"right":{"text":"texture","types":["String"]}}],"examples":[{"text":"```sqf\n_flagE setFlagTexture \"\\ca\\misc\\data\\sever_vlajka.paa\";\n```","code":["_flagE setFlagTexture \"\\ca\\misc\\data\\sever_vlajka.paa\";"]},{"text":"```sqf\n_flagW setFlagTexture \"\\ca\\misc\\data\\usa_vlajka.paa\";\n```","code":["_flagW setFlagTexture \"\\ca\\misc\\data\\usa_vlajka.paa\";"]},{"text":"```sqf\nflag1 setFlagTexture \"\\A3\\Data_F\\Flags\\Flag_red_CO.paa\";\n```","code":["flag1 setFlagTexture \"\\A3\\Data_F\\Flags\\Flag_red_CO.paa\";"]},{"text":"```sqf\n_customFlag setFlagTexture \"myMissionFlag.paa\";\n```","code":["_customFlag setFlagTexture \"myMissionFlag.paa\";"]},{"text":"```sqf\n_flag_Arma_3 setFlagTexture \"\\a3\\ui_f\\data\\Logos\\arma3_expansion_ca.paa\";\n```","code":["_flag_Arma_3 setFlagTexture \"\\a3\\ui_f\\data\\Logos\\arma3_expansion_ca.paa\";"]},{"text":"Capturable OPFOR flag:\n\n```sqf\nprivate _flag = \"FlagPole_F\" createVehicle position player;\n_flag setFlagTexture \"\\A3\\Data_F\\Flags\\Flag_CSAT_CO.paa\";\n_flag setFlagSide east;\n```","code":["private _flag = \"FlagPole_F\" createVehicle position player;\n_flag setFlagTexture \"\\A3\\Data_F\\Flags\\Flag_CSAT_CO.paa\";\n_flag setFlagSide east;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["flag","flagOwner","setFlagOwner","setFlagSide","setObjectTexture","setObjectTextureGlobal","flagSide","flagTexture","setFlagAnimationPhase","flagAnimationPhase","forceFlagTexture","getForcedFlagTexture"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Flags","Introduced with Operation Flashpoint version 1.00","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}