OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cirkut5732 on 02 Mar 2005, 21:54:30

Title: Flag animation??
Post by: cirkut5732 on 02 Mar 2005, 21:54:30
Is it just me or did the flags in the game flap in the wind?? When I place a flag on a pole in the ditor and preview it, It looks like the flag on the moon, Straight and starched. Any Help??
Title: Re:Flag animation??
Post by: macguba on 02 Mar 2005, 22:55:59
They do flap.     Try making the weather worse.
Title: Re:Flag animation??
Post by: cirkut5732 on 02 Mar 2005, 23:30:09
Thanks Mcguba never thought of that!! But If there is no weather shouldnt't the cloth be hanging down not sticking straight out??
Title: Re:Flag animation??
Post by: cirkut5732 on 02 Mar 2005, 23:51:06
Also Mcguba like 3 posts down from this one, Is one called Light Source, Me and another member are waiting for a response, Im sure you could answer it (if ya want lol)!! its that setpos headlamp post
Title: Re:Flag animation??
Post by: macguba on 03 Mar 2005, 00:09:32
Quote
But If there is no weather shouldnt't the cloth be hanging down not sticking straight out??
Yes ...... I thought of that, but I hoped that if I ignored that little detail it would go away.    ;D

If I knew how to make the headlamp work I'd have said.   Sorry.
Title: Re:Flag animation??
Post by: cirkut5732 on 03 Mar 2005, 00:10:46
No problem Mcguba you've been a great help!!!
Title: Re:Flag animation??
Post by: General Barron on 03 Mar 2005, 00:24:10
What flag are you placing? Are you placing the default flagpole, and then using the setflagtexture (?) command to set it's flag? Or are you placing something that automatically has a flag on it?

I ask because in Gunslingers/Kegetys editor addon, there are flags that are included, but they don't work like real flags. I suspect that is what you are placing, not the real BIS flagpole.
Title: Re:Flag animation??
Post by: johan_d2 on 03 Mar 2005, 01:55:30
Try them all out, just one flaps in the wind.. cant remember which one, I belive the first in the list. Use setflagtexture to have your texture.

Johan
Title: Re:Flag animation??
Post by: cirkut5732 on 03 Mar 2005, 02:54:29
Ahhhh, And the Baron strikes again, Ya im using a flagpole that already has a flag "pre"attached, how do i use the setexture command for the regular american flag?
flagpolename or this settexture ________
Title: Re:Flag animation??
Post by: Planck on 03 Mar 2005, 03:20:03
In the init field of your empty flagpole put:


flagpolename setFlagTexture "usa_vlajka.pac"

or

this setFlagTexture "usa_vlajka.pac"

This of course is the US flag

The Flags.pbo in your addons folder has a whole list of flags you can use for just about any country you care to think of.
These are all in .jpg format.

So:

this setFlagTexture "Scotland.jpg"

would give you the St. Andrews cross.   ;D  ;D ::)


Planck
Title: Re:Flag animation??
Post by: macguba on 03 Mar 2005, 11:40:18
Planck is right of course.   The correct syntax to grab the flag directly from the addon is

flag1 setFlagTexture "\Flags\Scotland.jpg"

There are lists of what flags are in the addon, but I recommend you unpbo it and look at the thumbnails.
Title: Re:Flag animation??
Post by: bedges on 03 Mar 2005, 12:40:30
i did not know this... that is an excellent resource, thanks!

ah ofpec, how do i love thee... let me count the ways...  :-*
Title: Re:Flag animation??
Post by: Planck on 04 Mar 2005, 22:59:25
Quote
flag1 setFlagTexture "\Flags\Scotland.jpg"

Oops...silly me, I forgot the whole path.   ;D


Planck