Jump to content

Sign in to follow this  
breeze

attaching a camera

Recommended Posts

I am trying to attach a camera to "plane1" I watched some video by keefygeorge double checked it in Mr Murrays book and I don't see what I am doing wrong? Everytime I try to attach it to a target It looks out into nothing.

And yes I did name the plane "plane1" if anyone sees the mistake please help me out here.

Thanks

Breeze

titlecut ["Move the Jeep", "black in",5]

_camera = "camera" camcreate [0,0,0]

_camera cameraeffect ["internal", "back"]

showcinemaborder False;

#loop

;=== 3:14:56

_camera camSetTarget [plane1]

_camera camSetrelPos [2,-2,2]

_camera camPrepareFOV 0.700

_camera camCommitPrepared 0

@camCommitted _camera

goto "loop"

player cameraeffect ["terminate",""Black"]

camdestroy _camera

end1= true;

exit;

Share this post


Link to post
Share on other sites

im no expert on sqs but how are you suppose to break out of that loop ?

i would rather make it sqf.

her are is a small example. "untested"..


titlecut ["Move the Jeep", "black in",5];

_cpos = [x,y,z]; // camera position on the vehicle-.

_cam = "camera" camcreate [0, 0, 0];
_cam attachto [plane1,_cpos]; // attach the camera to  the vehicle.
_cam cameraeffect ["internal", "back"];
_cam camSetFov 0.7;
showcinemaborder False;


while {something} do
{
 sleep 1;
};

player cameraeffect ["terminate","Black"];
camdestroy _cam;

Share this post


Link to post
Share on other sites

How can or do I determine how to stop the loop I am just learning off some tutorials?

So in yours how long am I on the plane? can I determine a set time?

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  

×