Difference between revisions of "setFlagTexture"

From Bohemia Interactive Community
Jump to navigation Jump to search
 
Line 32: Line 32:
 
To use a flag texture from there use:
 
To use a flag texture from there use:
  
flag1 '''setflagtexture''' "\flags\usa.jpg" ...... USA flag
+
flag1 '''setflagtexture''' "\flags\usa.jpg" ...... USA flag<br>
flag1 '''setflagtexture''' "\flags\ussr.jpg" ...... USSR flag
+
flag1 '''setflagtexture''' "\flags\ussr.jpg" ...... USSR flag<br>
 
flag1 '''setflagtexture''' "\flags\fia.jpg" ...... Resistance flag
 
flag1 '''setflagtexture''' "\flags\fia.jpg" ...... Resistance flag

Revision as of 15:42, 17 April 2006

back to COMREF

flag setFlagTexture texture


Operand types:

flag: Object

texture: String

Type of returned value:

Nothing

Description:

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


Example:

flag1 setFlagTexture "usa_vlajka.pac"


Comments:

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