Jump to content
Sign in to follow this  
dissaifer

Camera doesn't follow plane with different positions

Recommended Posts

I am trying to have a few camera shots, the last being one that follows the plane... for some reason it won't. What am I doing wrong?

camera camSetTarget a1;

camera camSetPos [4587.70,10126.40,2.00];

camera camSetFOV 0.224;

camera camCommit 0.01;

@camCommitted camera;

~3

//camera on plane

while {true} do {

_cam camsettarget al;

_cam cameraeffect ["internal", "back"];

_cam camsetrelpos [0, -5, 2];

_cam camcommit 0.01;

sleep 0.01;

};

Share this post


Link to post
Share on other sites

You're mixing .sqs and .sqf. In what language do you want to make your camscript?

Share this post


Link to post
Share on other sites

I thought .sqs was deprecated, but you could still use it. It's very confusing being a noob... I am trying to make a Intro, but have only since it as .sqs.

Share this post


Link to post
Share on other sites

Ok, then drop the whole "while do" function, it's .sqf. Delete the ";", you don't need them in .sqs. And change the "//" before your comment to ";". Oh, and "sleep" is also .sqf only - use ~5 instead.

Your camscript in .sqs should be looking like this:

camera camSetTarget a1
camera camSetPos [4587.70,10126.40,2.00]
camera camSetFOV 0.224
camera camCommit 0.01
@camCommitted camera

~3


;camera on plane

#MyFirstLoopInSQS
_cam camsettarget al
_cam cameraeffect ["internal", "back"]
_cam camsetrelpos [0, -5, 2]
_cam camcommit 0.01
~0.01
goto "MyFirstLoopInSQS"

You could also create camscipts in .sqf but i prefer .sqs because if you click ingame and then paste the cam's position into a script it's always .sqs syntax.

If you want to read more about .sqs and .sqf check the biki:

http://community.bistudio.com/wiki/sqs

http://community.bistudio.com/wiki/sqf

Edited by IndeedPete

Share this post


Link to post
Share on other sites

indeedpete you rock...

Now, off to figure out how to get a fixed wing shot!!!!

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  

×