Flags, Textuers and Signs ?

Hopefully this shows people how to correctly transpose the different values.

That's it, your done! Repack, upload and enjoy.

I managed to get the image to under 100kb. It still looked great in game, although i'm sure you could compress it further. Beware adding a few of these, will make your mission.pbo very big, very quickly. Not that it really matters that much :)

Hope i've helped someone.

Definitely helped me out. Thank you Ross for the detailed instruction.

The below pic is 18k. If anyone doesn't know: Save for Web & Devices option in Photoshop makes a nice small file.

2vbq35k.jpg


Anyone get the flag working? Having a little trouble...
 
No worries, thanks for the tip with photoshop.

I've not messed with flags yet, but its on my todo list.
 
Hi all,
Its very grateful that some here have made effortless that it works.

I was also like to know what is the classname of this billboard.
But I am confused that in the Map editor to save it as a single player.
I know the editor only because I had set for Chernarus buildings , i never saved as single Player becouse no one else can join on Server (Player Slots).
I like to try that on my Dayz Server , so I´ll ask you for a detailed HOWTO, can do that some one?
Thanks again for the great Job.

Greetz Ace
 
I got the custom flags to work !!!!
I'm on Epoch 1.0.2.4 btw.

So I just put a 256*128 jpg file straight in my mission.pbo then I added this in the mission.sqf file :
_vehicle_1278 = objNull;
if (true) then
{
_this = createVehicle ["FlagCarrierUSArmy_EP1", [4719.5962, 2587.4368, -2.0980835e-005], [], 0, "CAN_COLLIDE"];
_vehicle_1278 = _this;
_this setPos [4719.5962, 2587.4368, -2.0980835e-005];
_this setFlagTexture "yourflag.jpg";
};

setFlagTexture doesn't have the same syntax as setObjectTexture. I think that was the main mistake here.

Hope to solve the problem for some people ;)
 
Here's how I do it:

(Deleted all the stuff that didn't need to be quoted)

Hope i've helped someone.

I'm a little confused why you say to edit both the mission sqf and sqm. When I did that, I ended up with two signs, facing each other. When I just edited the mission.sqm, the sign appears, but not my graphic for the sign. I put it in a folder called "signs" and this is the code I used:

Code:
class Item100
{
position[]={1728.69,0.002,2057.54};
placement=1;
id=101;
side="EMPTY";
vehicle="SignM_FARP_Winchester_EP1";
azimuth=176;
text="kz_info";
init="_nul = this setObjectTexture [0, ""signs\kz_sign.jpg""]";
};

It shows the standard FARP Winchester graphic instead of the one I made.
 
Thanks Guys, you all helped me a lot to got this working!!

I've set a billboard via Map Editor on the Map, have saved the mission as user-defined.

After saving mission i opened the mission.sqm and after This part:

Code:
class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={-143.93861,0.52647489,2319.5012};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                };
            };
        };
    };

I found this Part:

Code:
class Vehicles
    {
        items=1;
        class Item0
        {
            position[]={2111.5403,242.18959,11856.666};
            azimut=22.865389;
            id=101;
            side="EMPTY";
            vehicle="SignM_FARP_Winchester_EP1";
            skill=0.2;
            init="this setpos [4821.3037, 10273.014, 6.1035156e-005];";
        };
    };
This is the Billboard i set on map!
I have more then one Item in this list so I have abbreviated it!


I changed this
Code:
init="this setpos [4821.3037, 10273.014, 6.1035156e-005];";

TO

Code:
init="_nul = this setObjectTexture [0, ""signs\factory.jpg""]";


Hope it helps some one.

My Billboards ^^
pDfxd.jpg


REctg.jpg


Ace
 
Last edited:
Back
Top