OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: InFeErNiTo on 29 Apr 2004, 13:07:50
-
hi i want to make a intro for my map.
i want 3 different jpg's to fade in/out on the screen after one another. i dont have any idea how to do this, can anyone help?
-
Hi,
Put this in your description.ext file:
class RscPicture
{
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,0.3};
font="tahomaB24";
size=0;
};
class RscTitles
{
class TitlePic1
{
idd=-1;
movingEnable=0;
duration=4;
name="TitlePic1";
controls[]={"Title"};
class Title: RscPicture
{
text="NameOfPicFile";
x=0.420000;
y=0.300000;
w=0.160000;
h=0.300000;
};
};
};
Just replace the bold text with the name of your picture file.
And then use the class name (TitlePic1) to show your picture:
titleRSC ["TitlePic1", "plain"]
You can also edit the duration field, distance from left (x), distance from top (y), width (w) and height (h) to your own needs.
Repeat the process 3 times (with different class names) putting the names of each picture and your done.
Cheers
-
i put the script u gave in the description.ext and then put the
["TitlePic1", "plain"]
into a sqs file called intro, i then ran this script from a trigger in the editor using this line
[] exec "intro.sqs";
when i start the mission i get a error sayng that the pic isnt found, i put the picture in my mission folder, do i need to put it elsewere?
i want the picture to cover the whole screen, is this possible?
-
When you change (and save) something in a description.ext , you always have to reload your mission to see the effect.
-
Read this mate.. its a tut by Sui on getting pictures up in missions..
Works perfectly!!
Rhyse
-
thanks ill read up
-
Do you know how to insert a video clip aswell?
-
No but im guesin you have to deine its as a CutRSC in the Description.EXt file though..
Download the COC Tomahawk pack.. thye do this in the introdutcion mission.. take it apart and look at it.
Rhys
-
I mean something like a .mpeg video clip
-
Thast what i meant!
-
ohhhhh. Can u give me a link to the download if it isn't too hard, i can't find it.
-
Go to the Home page and click on affiliated mods with OFPEC.. the link for the COC website is there.. and the COC Tomahawks are in there..
They are also in the Addons Depot..
Rhys
-
Thnx
And does anybody know why it says I'm a Llama under my name everytime i post something?
-
And does anybody know why it says I'm a Llama under my name everytime i post something?
It sayds that by default when ever you register here. Just login and click the "profile" button near the top of the page. There you can change "I am a Llama" to what ever you want ;)
-
I mean something like a .mpeg video clip
Not possible, CoC used 200+ JPEG files shown in rapid succesion.
-
CoC used 162 files for their launch movie. Still a lot.
Just consider that if you want a smooth movie you'll need 20-24 frames per second (so 20-24 .jpg per second). Even a short movie of 5 seconds would still require at least 500kb of jpg files in low quality.
But it is possible.
-
You took my I'm a Llama! thing