OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Federalist on 11 Feb 2004, 16:10:41
-
Hi,
I'm making a mission and just had a couple of questions to ask.
1. I read the Rsc tutorial and can succesfully add a picture to my cutscenes. However, the tutorial only explains how to add one picture. How can I add more than one picture?
I think the description.ext should look like this, but it doesn't work.
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 Title
{
idd=-1;
movingEnable=0;
duration=8;
name="Title";
controls[]={"Title"};
class Title: RscPicture
{
text="Title.paa";
x=0.200000;
y=0.200000;
w=0.600000;
h=0.600000;
};
class RscTitles2
{
class Title2
{
idd=-1;
movingEnable=0;
duration=8;
name="Title2";
controls[]={"Title2"};
class Title: RscPicture
{
text="Title2.paa";
x=0.200000;
y=0.200000;
w=0.600000;
h=0.600000;
};
};
};
2. Also, how do I use the strikeFist command. I'm sorry if this question has already been asked, but I searched for both strikeFist and "strikeFist" and nothing came up.
Thanks guys.
-
Jyst copy the part
class RscTitles2
{
class Title2
{
idd=-1;
movingEnable=0;
duration=8;
name="Title2";
controls[]={"Title2"};
class Title: RscPicture
{
text="Title2.paa";
x=0.200000;
y=0.200000;
w=0.600000;
h=0.600000;
};
};
};
as many timess you want, of course changing each name! if you will use the same names, then the game will crash!
YOur problem is that you are closing the first RscPicture
it should look like
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 Title
{
idd=-1;
movingEnable=0;
duration=8;
name="RscTitles";
controls[]={"RscTitles"};
class Title: RscTitles
{
text="Title.paa";
x=0.200000;
y=0.200000;
w=0.600000;
h=0.600000;
};
};
};
class RscTitles2
{
class RscTitles2
{
idd=-1;
movingEnable=0;
duration=8;
name="RscTitles2";
controls[]={"RscTitles2"};
class Title: RscTitles2
{
text="Title2.paa";
x=0.200000;
y=0.200000;
w=0.600000;
h=0.600000;
};
};
};
};
and about second part - i know the play playmove StrikeFist, am i right!
-
strokeFist, not strikefist.
You can add it as a weapon to the player unit: removeallweapons first as usual.
For AI its best done as a playmove animation I think.
-
Thanks guys. Right as usual 8)