OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: O Neil on 30 Sep 2002, 01:19:12

Title: Flag
Post 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.
Title: Re:Flag
Post by: seanver on 30 Sep 2002, 01:25:50
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"
Title: Re:Flag
Post by: Artak on 30 Sep 2002, 01:30:49
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"

 ;)
Title: Re:Flag
Post by: bringer_25 on 30 Sep 2002, 10:43:09
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
Title: Re:Flag
Post by: macguba on 30 Sep 2002, 12:39:09
In the init field of the flagpole put

this setFlagTexture "usa_vlajka.pac"

or

this setFlagTexture "rus_vlajka.pac"

etc.
Title: Re:Flag
Post by: seanver on 30 Sep 2002, 15:52:29
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-
Title: Re:Flag
Post by: icarus_uk on 30 Sep 2002, 23:07:06
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.
Title: Re:Flag
Post by: O Neil on 01 Oct 2002, 00:21:10
ok, thxs heaps guys.