PDA

View Full Version : unit cam



strike3314
Aug 27 2009, 03:52
I hope this is in the right place. I've been searching for hours and cannot find a working solution. What code do I need to have a camera attached to and move with a Halo unit ? This is what I'm using now, but the camera does not even come on. I have it in a game logic with the [] exec "tfkwcam.sqs" in the init. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0">

<tr><td>Code Sample </td></tr><tr><td id="CODE">useCamera = true
_c = "camera" camCreate getPos u1
_c cameraEffect ["internal","front"]
_c camSetTarget u1
_c camSetFov 0.7
_c camCommit 0
#loop
_c camSetRelPos [0, 9, -0.5]
_c camCommit 0
? useCamera : goto "loop"
_c cameraEffect ["terminate","front"]
camDestroy _c[/QUOTE]

[APS]Gnat
Aug 27 2009, 13:48
Try: ArmA 2 - MISSION EDITING & SCRIPTING instead
http://forums.bistudio.com/forumdisplay.php?f=93

strike3314
Aug 28 2009, 01:51
Gnat;1421726']Try: ArmA 2 - MISSION EDITING & SCRIPTING instead
http://forums.bistudio.com/forumdisplay.php?f=93

Okay.