Jump to content
Sign in to follow this  
thaFunkster

Please help, why are my camera's not working as intended?

Recommended Posts

Hello,

I am having a few problems getting a camera to work the way I want along with some other things…

I have the following script running:

….

_cam attachTo [Air1, [-5.00, 0.0, 0.6]];

_cam camsettarget [15000.0,98267.36,6065.62];

_cam camCommit 0;

sleep 3.0;

//look at #2

_cam camsettarget Air2;

_cam camCommit 4.0;

sleep 6.0;

//fly by from Armour as it is attacked

_cam attachTo [bMP2, [-2.00, -0.00, -1.0]]

_cam setTarget Air1;

_cam camsetFOV 0.7;

_cam camCommit 0.00;

Sleep 1.0;

BMP1 GlobalChat "Working";

_cam camsetFOV 0.3;

_cam camcommit 2.0;

Sleep 3.0;

_cam camsetFOV 0.7;

_cam camcommit 4.0

sleep 4.0

BMP1 GlobalChat "Still Working";

BMP1 setDamage 1;

Now, the first camera works fine.

But where I set the target to Air2, anc commit for 4 seconds, it only gets halfway through before switching to the next cam…

This is strange but no big issue.

Now, the next camera attached to BMP1 works fine.

However, the following lines where it is told to zoom in never work.

The Global Chat messages never appear, and the BMP never gets the damage set to 1 that I want.

Any idea what is going on here?

Many thanks.

Share this post


Link to post
Share on other sites

You have 3 missing ";"

I have marked the lines in red.

_cam attachTo [Air1, [-5.00, 0.0, 0.6]];
_cam camsettarget [15000.0,98267.36,6065.62];
_cam camCommit 0;


sleep 3.0;

//look at #2

_cam camsettarget Air2;
_cam camCommit 4.0;

sleep 6.0;

//fly by from Armour as it is attacked

[color="Red"]_cam attachTo [bMP2, [-2.00, -0.00, -1.0]][/color]
_cam setTarget Air1;
_cam camsetFOV 0.7;
_cam camCommit 0.00;

Sleep 1.0;

BMP1 GlobalChat "Working";

_cam camsetFOV 0.3;
_cam camcommit 2.0;

Sleep 3.0;

_cam camsetFOV 0.7;
[color="Red"]_cam camcommit 4.0[/color]

[color="Red"]sleep 4.0[/color]

BMP1 GlobalChat "Still Working";

BMP1 setDamage 1;

Share this post


Link to post
Share on other sites

Thanks SNKMAN,

One other question, I cannot get the BMP to blow up.

I have tried putting "this setDamage 1" in the init field and it works no problem.

When I put "BMP1 setDamage 1" in a script it just wont work.

I also tried "vehicle BMP1 setDamage 1" to no avail.

How to do I call this function in a script?

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  

×