Difference between revisions of "setFlagTexture"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 1: Line 1:
[[Category:Scripting Commands|S]]
[[Category:Scripting Commands|SETFLAGTEXTURE]]
[[Category:Scripting Commands OFP 1.97|S]]
[[Category:Scripting Commands OFP 1.97|SETFLAGTEXTURE]]
[[Category:Scripting Commands OFP 1.46|S]]
[[Category:Scripting Commands OFP 1.46|SETFLAGTEXTURE]]
[[Category:Scripting Commands ArmA|S]]
[[Category:Scripting Commands ArmA|SETFLAGTEXTURE]]

Revision as of 17:36, 4 May 2006

flag setFlagTexture texture

Operand types:

flag: Object

texture: String

Type of returned value:



Set flag texture.
If texture is "", flag is not drawn.


flag1 setFlagTexture "usa_vlajka.pac"


Flashpoint comes with an addon called Flags.pbo which contains all the flags of the world.

You can find it in the addons folder.
To use a flag texture from there use:

flag1 setflagtexture "\flags\usa.jpg" ...... USA flag
flag1 setflagtexture "\flags\ussr.jpg" ...... USSR flag
flag1 setflagtexture "\flags\fia.jpg" ...... Resistance flag