Home   Help Search Login Register  

Author Topic: AGM mounted camera  (Read 762 times)

0 Members and 1 Guest are viewing this topic.

Offline Conflict109

  • Members
  • *
  • no worries
AGM mounted camera
« on: 19 Jan 2003, 03:56:15 »
ok i asked in the wrong forum before,  would it be possible to mount a camera or make a camera appear to be mounted to a form of munitions when fired from a plane.... for example if i fired a missle off an a-10, could i make the view go to the front of the missle/bomb and black out when it impacts the target- i just wanted to do something with that effect for an intro.
thanks
C109
Hey!! Bring back my pants you friggin elves!

Pandoz

  • Guest
Re:AGM mounted camera
« Reply #1 on: 19 Jan 2003, 05:15:58 »
hmm i think i answered this in another forum of ur post...but o well...basically u need to camcreate then use nearest object and use that to find the bomb...then track the bomb with the camera, then when the bomb doesnt exist u can use the blackout thing...so maybe like have it hitting a shilka and when the shilka is dead go to black.


that make any sense? if not check out the NAA movie at www.operationnorthstar.com/naa and unpbo it then scroll down to section 5 i believe and see how Dismas did it


[NAA]Pandoz

vektorboson

  • Guest
Re:AGM mounted camera
« Reply #2 on: 19 Jan 2003, 12:41:09 »
Hi,

perhaps this helps you, it's a script I experimented with:

Add this to your favourite plane's init:

Code: [Select]
this addEventHandler ["FIRED", {_this exec "onBomb.sqs"}]

And create the onBomb.sqs

Code: [Select]
_plane = _this select 0
?_this select 4 != "LaserGuidedBomb": exit
_bomb = NearestObject [_plane, "LaserGuidedBomb"]

_camera = "camera" camCreate (getpos _plane)
_camera cameraEffect ["External", "Back"]
_camera camSetFov 0.7
showcinemaborder false

#loop
_camera camSetTarget _bomb
_camera camSetRelPos [0, -8, 1]
_camera camCommit 0
~0.001
?alive _bomb: goto "loop"

_camera cameraEffect ["Terminate", "Back"]
camDestroy _camera

You can replace "LaserGuidedBomb" with every other rocket or ammo (i.e. the a10 maverick).

Pandoz

  • Guest
Re:AGM mounted camera
« Reply #3 on: 21 Jan 2003, 03:58:26 »
hmmm yep that is pretty similar to the one i was thinking of...:)

Offline Conflict109

  • Members
  • *
  • no worries
Re:AGM mounted camera
« Reply #4 on: 21 Jan 2003, 23:45:07 »
thanks... i'll play with it a lil
Hey!! Bring back my pants you friggin elves!