OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 30 Sep 2002, 01:19:12
-
Hey.
Soz, I just couldn't find the tut anywhere. I've downloaded the flags a long time ago but can't remember what the script was that I type in put the flag into the game.
Please help.
Thxs
PS: I'm working on the good mission for Dr. No's island that people can download.
-
You mean the flags pack with hundreds of flags from hundreds of countries? Select Flag (INternational) and in its init filed put, for example:
this setflagtexture "\Flags\spain.jpg"
-
Hi O Neil!
I founf this from the FAQ depot. Hope it helps.
Place this in the init field for the flagpole.
setflagtexture "\flags\yourflag"
;)
-
ok i have tried this a some good times now, i havent gotten it to work, can you please put what ever you need to type in the init box in parenthesees
-
In the init field of the flagpole put
this setFlagTexture "usa_vlajka.pac"
or
this setFlagTexture "rus_vlajka.pac"
etc.
-
Macguba, that will show an American flag and a Russian flag. But at least in the 1.75 you can put what I said -and I tested it- and you can see, for example, a spanish flag -as in my example-
-
As a point of interest. You can use any image file you like as a flasg as long as it is square endge length and a jpg.
Just use;
SetFlagTexture "NameOfPicture.jpg"
And you get your flag.
NB, square edge length means of pixels, 2, 4, 8, 16, 32, 64, 128, 256 etc.
-
ok, thxs heaps guys.