Jump to content
Sign in to follow this  
BLSmith2112

Force a bomb to land in same spot?

Recommended Posts

I want to simulate a bomb dropping on a generals head. (See end of Base Attack 2, Sig).

However when I made it happen the last time, it was pure dumb luck. This time, I need it to be flawless. I want a plane to flyby, and want a bomb to come in and land in precisely the exact same spot every time, so I can better position the general/camera for the shot.

The script needs only to fool the camera and doesn't need to be a full working jet dropping a bomb, the bomb can be created or can be done by any means necessary. I just have no idea how I could go about this.

Share this post


Link to post
Share on other sites

Actually, this topic has been mentioned already as I remember and there was a lot put in that thread. Use SEARCH, I should think you will find this answer.

Share this post


Link to post
Share on other sites

Just make the plane fly over and whatever height you want.

Setup a trigger to create the bomb over the generals head at whatever altitude you want.

Depending on how high the plane is, is where the trigger should be.

Share this post


Link to post
Share on other sites

Dai007... That doesn't work. The bomb will drop within 50-100m apart. I need it to land on a pin drop every time.

I did search, and there is nothing in Arma's scripting category..There is no such thread regarding having a bomb drop on a dime. There are threads of questions asking for bombs to all drop in the same facinity but nothing on how a bomb can land EXACTLY in the EXACTLY same spot. This question is ligit, and so unless you can find an ArmA discussion regarding this issue, bud out. Perhaps next time you use SEARCH to be sure your right before making such accusations.

Now the next few replys wont have anything to do my question.. Thanks for wasting my time.

Share this post


Link to post
Share on other sites

You will need to do this in a script.

1: create the bomp

2: _bomb setPos [(getPos General select 0), (getPos General select 1), 25)];

I wrote a few air strike scripts for OFP back in the day.

If you like, you can retrofit one of these to serve your purpose.

I would modify the bombing run on map click version.

Note that these will not work right out of the box since they're ofp scripts and depend on ofp object types and are in the old sqs syntax.

Anyways, here's a link to that script, should you choose to use it.

http://www.flashpoint1985.com/cgi-bin....3;st=15

Share this post


Link to post
Share on other sites

I appreciate your responce. However, I don't know what exactly I would be changing due to my repeated failed attempts to try and understand scripting. I guess I'll have to put this on hold until the day comes when I can contemplate it.

Share this post


Link to post
Share on other sites

Personally, I'd like to help you out more. Maybe even just do it for you. I really don't have the time right now though.

In any case, I would suggest that you make that day come to you when you want it instead of waiting for it to come to you on it's own wink_o.gif.

Share this post


Link to post
Share on other sites

Yea... sad_o.gif

I've been trying to learn the ways of scripting for 5 years and honestly can't come to terms with it. I don't know what it is... I've probably spent over 500 hours editing missions and playing with commands, yet I don't remember jack.

*Wishes I was Kidding* huh.gif

Hopefully some people will be releasing some comprehensive ArmA tutorials soon. Preferably 110% in English too.

Share this post


Link to post
Share on other sites

Victor - you owe DecimusAquila an apology for being a smarty. He was dead rght. This was HUGE thread about this and while I COULD be a jerk, I'll give you the code anyway:

This is exactly what you are looking for:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; ***************************************

;Explosion Script by GuiltyRoachKillar

; Updated by ]KAW[ Rooster aka SATEXAS69

;******************************************

;

;To use make a trigger:

;Activation: [nameofobject,"ammotype",height] exec "explos.sqs"

;

;Example: [target1,"Sh_122_HE",15] exec "explos.sqs"

;

; ***************************************

; This is great for making stuff explode using triggers and such...

;

; OR -

;

; You can simulate a huge bombing run like I have, by making a bunch of "H" objects

; using the INVISIBLE ones, and naming them "target1"... "target2"... and then having

; a plane fly over them setting off the above in a trigger... I stack multiple in a

; single Activation line varying the height for tons of fun in my mission

; called "FORT ROOSTER"

;

; ***************************************

;Get the array parameters and define _pos...

_unit = _this select 0

_ammo = _this select 1

_height = _this select 2

_pos = getpos _unit

;set _pos height according to what's in the array

_x = _pos Select 0

_y = _pos Select 1

_z = ( _pos Select 2) + _height

_pos = [_x, _y, _z]

#b

bomb= _ammo createvehicle _pos

bomb2= _ammo createvehicle _pos

exit

Share this post


Link to post
Share on other sites

I'd like to know where that was. What was the link title? Was it in ArmA - Editing and Scripting? Because that's what the question is based off of and I can probably tell you:

A. The thread title (if in ArmA: S&E) was horribly written.

B. If was in OFP S&E, which I never bother to look into anyway since so much of the syntax's have changed between the games its pointless to check there.

---

Thanks for the code, I'll check it out. Oh, and if it was in ArmA S&E and the thread was titled descriptively, I will apologize for my stupidity.

---

edit: One last question, How can I give the bomb some speed to better simulate an actual bomb? Thanks, appreciated very much.

Share this post


Link to post
Share on other sites
Dai007... That doesn't work. The bomb will drop within 50-100m apart. I need it to land on a pin drop every time.

I did search, and there is nothing in Arma's scripting category..There is no such thread regarding having a bomb drop on a dime. There are threads of questions asking for bombs to all drop in the same facinity but nothing on how a bomb can land EXACTLY in the EXACTLY same spot. This question is ligit, and so unless you can find an ArmA discussion regarding this issue, bud out. Perhaps next time you use SEARCH to be sure your right before making such accusations.

Now the next few replys wont have anything to do my question.. Thanks for wasting my time.

A pity, after reading your statements, forget about me sending you the script for pinpoint hits. I was going to re-reply by sending a link but your big words just kills it all. I will be worried next time to answer your posts due to your comments.Be happy if others send you what you search for.

There are certain threads here in BI that will link you to other forums on your issue and threads that have the bomb script in BI. You only need patience to read and find your needs.

Share this post


Link to post
Share on other sites
Thanks for the code, I'll check it out.

edit: One last question, How can I give the bomb some speed to better simulate an actual bomb?

Please try the script I gave you. You'll find it simulates the dropping just fine using the height value.

Share this post


Link to post
Share on other sites
One last question, How can I give the bomb some speed to better simulate an actual bomb? Thanks, appreciated very much.

add underneath

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

bomb= _ammo createvehicle _pos

bomb2= _ammo createvehicle _pos

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

bomb setVelocity [0,0,-2]

bomb2 setVelocity [0,0,-2]

-2 is -2 meters per second. The more negative you make it, the faster the fall rate. the less negative, the slower the fall rate.

Share this post


Link to post
Share on other sites

Alright. I admit after staying up my 40th straight hour. I have been selfish and stupid. I apologize and hope that it doesn't effect your portrayal of me in the future. I'll try to be more open-minded about things before blurting crap out.

I made a quick video showing what I was shooting for, however this won't be anything like the final product. I just made it for you guys to show what I was looking for.

Thanks guys for all your help and patience.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×