PDA

View Full Version : Attach camera to plane (iron front 44)



GoreZiad
Jun 1 2012, 08:29
Hey. I created a mission with a soldier, with this exec "camera.sqs" in init, and placed a plane, which I named stuka1 in its name field. Ran the mission and pressed CTRL+V to copy the cam info or whatever, like I assume it's done according to this video: http://www.youtube.com/watch?v=-cKqjROWYxM

After following the video, here's my script:


showcinemaborder false;

titlecut [" ","BLACK IN",1]
_camera = "camera" camcreate [0,0,0]
_camera cameraeffect ["internal", "back"}

showcinemaborder false;


#loop
;comment "8:45:54";
_camera camSetTarget stuka1
_camera camsetrelPos [2,2,2]
_camera camPrepareFOV 0.100
_camera camCommitPrepared 0
@<hidden>
goto "loop"


player cameraeffect ["terminate",""back"]
camdestroy _camera
end1=true;
exit;

I then named my soldier this exec "cameratest1.sqs" which is the name of my script file above. But nothing happens when running the mission, I just spawn.
There's 2 files in my mission folder, mission.sqm which I haven't touched, and then the cameratest1.sqs

Thanks.

Max Power
Jun 1 2012, 08:34
Moving to I44 missions editing and scripting.

Make sure you're posting in the right forum, please.

GoreZiad
Jun 1 2012, 08:37
Sorry, thanks.

GoreZiad
Jun 2 2012, 23:33
bump...

Wass
Jun 3 2012, 06:49
I then named my soldier this exec "cameratest1.sqs" which is the name of my script file above.



this exec "cameratest1.sqs"
this must be written in INIT field, non at name field.

Max Power
Jun 3 2012, 07:22
bump...

GoreZiad

Please do not bump your threads. It is spamming. If you want your thread bumped, contact a moderator. Thank you.