Jump to content
Sign in to follow this  
-BBE- Soul Assassin

Sniper view cutscene - description.ext

Recommended Posts

Hello all,

I'm having trouble implementing a cutscene where you look through a scope. I looked in Mr Murray's guide and tried this:

#define CT_OBJECT 80

class RscObject

{

type = CT_OBJECT;

scale = 1.0;

direction[] = {0, 0, 1};

up[] = {0, 1, 0};

};

class RscTitles {

titles[] = {M24};

class M24 {

idd=-1;

movingEnable = false;

duration=100;

name = "binocular";

objects[]= {binocular};

class binocular : RscObject {

model= "optika_sniperw.p3d";

idc= -1;

position[] = {0,0,0.063};

direction[] = {sin 0, sin 180 * cos 0, cos 180 * cos 0};

up[] = {0, cos 180, -sin 180};

};

};

};

Went to Ofpec, found and tried this:

#define CT_OBJECT 80

class RscObject

{

type = CT_OBJECT;

scale = 1.0;

direction[] = {0, 0, 1};

up[] = {0, 1, 0};

};

class RscTitles

{

titles[] = {SNIPER};

class SNIPER

{

idd=-1;

movingEnable = false;

duration=10;

name = "SNIPER";

objects[]= {SNIPER};

class SNIPER : RscObject

{

model= "optika_sniperw.p3d";

idc=-1;

position[] = {0,0,0.065};

direction[] = {sin 0, sin 0, cos 180};

up[] = {0, 1, 0};

};

};

http://www.ofpec.com/forum/index.php?topic=29511.msg201399#msg201399

I added the optika_sniper3.p3d file to my mission folder and "cutrsc ["M24","PLAIN"]" to the intro.sqs.

When launching the mission it crashes with this error: "line235: .RSCTitles: member already defined".

What's wrong with the description.ext code?

Share this post


Link to post
Share on other sites

You have a double entry.

Share this post


Link to post
Share on other sites

Ah, I didn't realise I had to incorporate it into the existing structure as opposed to adding at the bottom. Bit new to the description.ext structure...

I was about to ask about the newly popped up Undefined Base Class error when I considered that the other part of the code was still at the bottom of the file causing it to be read too late. Moved it up and atleast it's not crashing the editor for me anymore.

Thanks mate. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×