OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: chrisb1220 on 18 Jan 2003, 01:38:43

Title: Pic
Post by: chrisb1220 on 18 Jan 2003, 01:38:43
I'm trying to get a pic show up during the game in my mission. How?
Title: Re:Pic
Post by: Ranger on 18 Jan 2003, 06:30:04
Do you mean as in having a picture show up in the briefing?  Or do you mean more like as a poster on a wall or some such?  I know how to do the briefing pictures, if that's what you mean.  Let me know.
Title: Re:Pic
Post by: chrisb1220 on 18 Jan 2003, 23:24:53
Ummmmm, hard to explain. :-\ During the mission, right in the middle of the screen
Title: Re:Pic
Post by: MorMel on 19 Jan 2003, 02:33:48
I'm not sure but I think that if you create your own image as .PAA extension, then you'll be able to use it as a CutRsc (Cut Resource)...

Just trying... :-\
Title: Re:Pic
Post by: chrisb1220 on 19 Jan 2003, 18:32:10
Umm, I know how to make them .paa but that's it. Can somebody please help!!!!!!!!!!!!!!!!!
Title: Re:Pic
Post by: Black_Feather on 19 Jan 2003, 19:00:47
put this in your description.ext

class RscPicture
{
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="tahomaB24";
size=0;
};

class RscTitles
{

class yourpic
{
idd=-2;
movingEnable=1;
duration=8;
name="yourpic";
controls[]={"pic1"};

class pic1: RscPicture
{
text="yourpicturename.paa";
x=0.00000;
y=0.00000;
w=1.0;
h=1.0;
};


};
titles[]={"yourpic"};
};


change this bit and the yourpicturename to what you want

x=0.00000;
y=0.00000;
w=1.0;
h=1.0;

x & y are the position on the screen, and w & h are how big your pic is on the screen, 1 is full screen.

thats about it