OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Conflict109 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
-
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
-
Hi,
perhaps this helps you, it's a script I experimented with:
Add this to your favourite plane's init:
this addEventHandler ["FIRED", {_this exec "onBomb.sqs"}]
And create the onBomb.sqs
_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).
-
hmmm yep that is pretty similar to the one i was thinking of...:)
-
thanks... i'll play with it a lil