OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Abyss on 14 Jul 2004, 11:33:08
-
Hi guys i'm trying so simulate a russian SU25 droping a big A** bomb of some kind on a small town, i have got the carmer script working all i need is a big bang, or several small ones, any suggestions would be great
thanks in adv Abyss :joystick:
-
There are several nuclear bomb scripts out there somewhere, have a good hunt around.
-
_z = "LaserGuidedBomb" CamCreate getpos Whereyouwantit
-
yeah i found the COC tomma hawk missile addon its well good but the only probelm is just a the missile hits the town the intro freezes up for a few seconds and ruins the atmostphere is there any way i can stop this with out dropping the Grfx ???,
while i'm, here i aslo have a problem with my camera script.
cam camsettarget h
_cam camsetrelpos [ 0, 250, 65]
_cam camcommit 0
@camcommitted _cam
~8
[mymissile,mymissile ,[0,-25,15],true] exec "vehiclecam.sqs"
~4
vehiclecamstop = true
[] exec "camera script.sqs"
_cam camsettarget h
_cam camsetrelpos [ 0, 250, 65]
_cam camcommit 0
@camcommitted _cam
~8
_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit
it runs fine until the missle hits the town then the camera points at "h" which if fine but then it jumps from some where out at sea then back to the "h" location and so on can anyone help.
-
I'm not a scripting guru so I can't help with the details of the script. However I can tell you what's happening, for what its worth. The camera, for a moment, doesn't know what to point at so its defaulting to its default position, which is [0,0,0] or the bottom left hand corner of the map, to wit the sea. You need to figure out how when and why the camera doesn't know what to do and fill in the gap.
-
ok thanks i will have a fiddle with the script thanks a lot ;D