setFlagTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(35 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
 
|arg= local|MP argument=


| Set flag texture.
|eff= global|MP effect=
If texture is "", flag is not drawn. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| flag '''setFlagTexture''' texture |= Syntax
| Sets flag texture.
 
|p1= flag: [[Object]] |= Parameter 1


|p2= texture: [[String]] |= Parameter 2
If texture is "", flag is not drawn.<br>
Custom texture can be used, as long as it is in *.jpg format and has dimensions of 200×200px, or *.paa ({{arma3}} standard: 512×256px).


| [[Nothing]] |= Return value
{{Informative | See [[Flag Textures]] for a list of all in-game flag textures.}} |DESCRIPTION=
____________________________________________________________________________________________
 
|x1= <pre>flagE setFlagTexture "\ca\misc\data\sever_vlajka.paa"</pre> |= Example 1
|x2= <pre>flagW setFlagTexture "\ca\misc\data\usa_vlajka.paa"</pre> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| flag [[setFlagTexture]] texture |SYNTAX=


}}
|p1= flag: [[Object]] |PARAMETER1=


<h3 style="display:none">Notes</h3>
|p2= texture: [[String]] |PARAMETER2=
<dl class="command_description">
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 4, 2006 - 10:59</dd>
| [[Nothing]] |RETURNVALUE=
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:''
____________________________________________________________________________________________
 
|x1= <code>_flagE [[setFlagTexture]] "\ca\misc\data\sever_vlajka.paa";</code> |EXAMPLE1=


Flashpoint comes with an addon called Flags.pbo which contains all the flags of the world. You can find it in the addons folder.
|x2= <code>_flagW [[setFlagTexture]] "\ca\misc\data\usa_vlajka.paa";</code> |EXAMPLE2=
To use a flag texture from there use:


USA flag:
|x3= <code>flag1 [[setFlagTexture]] "\A3\Data_F\Flags\Flag_red_CO.paa";</code> |EXAMPLE3=


flag1 setflagtexture "\flags\usa.jpg"
|x4= <code>customFlag [[setFlagTexture]] "myMissionFlag.paa";</code> |EXAMPLE4=


USSR flag:
|x5= <code>flagARMA3 [[setFlagTexture]] "\a3\ui_f\data\Logos\arma3_expansion_ca.paa";</code> |EXAMPLE5=


flag1 setflagtexture "\flags\ussr.jpg"
|x6= Capturable OPFOR flag:<code>[[private]] _flag = "FlagPole_F" [[createVehicle]] [[position]] [[player]];
_flag [[setFlagTexture]] "\A3\Data_F\Flags\Flag_CSAT_CO.paa";
_flag [[setFlagSide]] [[east]];</code> |EXAMPLE6=
____________________________________________________________________________________________


Resistance flag:
| [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagSide]], [[setObjectTexture]], [[setObjectTextureGlobal]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
 
flag1 setflagtexture "\flags\fia.jpg"
</dd>
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>


|gr1= Flags
}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on August 18, 2007 - 10:59</dd>
<dt class="note">'''[[User:HAC_mainframe|HWM mainframe]]'''</dt><dd class="note">''Notes from before the conversion:''
This command works fine in multiplayer for Arma.




<!-- Note Section END -->
<!-- Note Section END -->
</dl>


 
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|SETFLAGTEXTURE]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETFLAGTEXTURE]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|SETFLAGTEXTURE]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|SETFLAGTEXTURE]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 20:24, 9 September 2020

Hover & click on the images for description

Description

Description:
Sets flag texture. If texture is "", flag is not drawn.
Custom texture can be used, as long as it is in *.jpg format and has dimensions of 200×200px, or *.paa (Arma 3 standard: 512×256px).
See Flag Textures for a list of all in-game flag textures.
Groups:
Flags

Syntax

Syntax:
flag setFlagTexture texture
Parameters:
flag: Object
texture: String
Return Value:
Nothing

Examples

Example 1:
_flagE setFlagTexture "\ca\misc\data\sever_vlajka.paa";
Example 2:
_flagW setFlagTexture "\ca\misc\data\usa_vlajka.paa";
Example 3:
flag1 setFlagTexture "\A3\Data_F\Flags\Flag_red_CO.paa";
Example 4:
customFlag setFlagTexture "myMissionFlag.paa";
Example 5:
flagARMA3 setFlagTexture "\a3\ui_f\data\Logos\arma3_expansion_ca.paa";
Example 6:
Capturable OPFOR flag:private _flag = "FlagPole_F" createVehicle position player; _flag setFlagTexture "\A3\Data_F\Flags\Flag_CSAT_CO.paa"; _flag setFlagSide east;

Additional Information

See also:
flagflagOwnersetFlagOwnersetFlagSidesetObjectTexturesetObjectTextureGlobalflagSideflagTexturesetFlagAnimationPhaseflagAnimationPhaseforceFlagTexturegetForcedFlagTextureFlag Textures

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes