Jump to content
Sign in to follow this  
Deathcon5

How to spawn a bomb as a prop?

Recommended Posts

I would like to have a large bomb as a prop for a mission and can't find how to do it. Basically it's as if terrorists had stolen a nuke and you have to keep them from detonating it. I want to spawn it where it's sitting on a table, or in the back of a truck, or whatever. I can spawn bombs that are live but not sure how to deactivate it. the ACE B-61 would be great but I can live with a LGB. Any ideas?

Share this post


Link to post
Share on other sites

I also want to do a PvP mission where West need to find and retrieve bomb (placed at one of three possible random locations) while East defend it (AI+players). West/East can only deactivate the nuke timer :)

I still need to figure out how to find that damn ACE nuke and see if its placeble as a suitcase or something :)

Share this post


Link to post
Share on other sites

You could try spawning the bomb and then calling "enableSimulation false" on it. Not sure what effect that has on munitions, but it's worth a try. You might need to spawn it in mid-air so it doesn't immediately detonate, and then move it after its had its simulation disabled.

Share this post


Link to post
Share on other sites

I be the author of the "damn ACE nuke".

You could make an inert bomb via a new config and just point it at the model you want, ACE or something else. Be sure to not use the bomb simulation so it stays around after ground contact.

Then if you need a boom, use the ACE supplied API function for a groundburst. Should work pretty well.

Good luck on the mission.

Share this post


Link to post
Share on other sites
I can spawn bombs that are live but not sure how to deactivate it.

love to know how you do this, I want a visual object for IED's (already using a number of IED scripts) so that players have a chance of seeing the artillery shell and avoiding it or looking for trigger man. I searched the editor high and low, and best thing I found was C4 prop.

Share this post


Link to post
Share on other sites
enableSimulation is not working in Multiplayer.

The notes suggest that the effect is local so it needs to be run on all machines for it to work. So if it does actually have the desired effect it should be possible to implement it in a way that'll work for MP, shouldn't it?

Share this post


Link to post
Share on other sites

You could make an inert bomb via a new config and just point it at the model you want, ACE or something else. Be sure to not use the bomb simulation so it stays around after ground contact.

Then if you need a boom, use the ACE supplied API function for a groundburst. Should work pretty well.

Good luck on the mission.

I have the boom working fine. Great job on the nuke btw.

But, I am not sure what you mean by "make a new config and point it at the model". If anyone could explain specifically how that is done. I just need the bomb model attached to a pickup truck so its in the bed or something.

Share this post


Link to post
Share on other sites

Create a bomb with the createVehicle command.

bomb = "Bo_GBU12_LGB" createvehicle (position this);

If you want that the bomb lays on the ground then use enableSimulation. This command must run on all computers in multiplayer:

bomb enableSimulation false;

If you want that the bomb is attached to a vehicle you only need the attachTo command:

bomb attachTo [test, [0,-1,-0.6]];

=>

arma22010-04-1216-51-5y57a.jpg

Btw. the bombs don't explode if you shoot at them.

If you want that the bombs explode if the vehicle is killed then make a trigger:

Condition: !alive vehicle

On Activation: detach bomb1; detach bomb2; etc.

Edited by Cyborg11

Share this post


Link to post
Share on other sites

Using enablesimulation should work for making the B-61 inert as well. I had been thinking along the lines of created a whole new weapon just for show, but this will do fine.

You'd still need to use the ground burst API for the boom. Otherwise you have to tinker with setting PAL interlock codes and fired event handlers - too much work for this situation.

And thank you for the compliment, Deathcon5 - very much appreciated.

Share this post


Link to post
Share on other sites

Thanks for the above info. I tried it on a mark-82 and using the enable simulation false seemed to work. It spawned the bomb at a given location, it was half in the ground but easy to fix if needed. Only hitch is I can still hear the sound effects of the bomb falling. Not sure another command is needed. Another possibility is JSRS not disabling the sound.

Share this post


Link to post
Share on other sites

There is an inert bomb object, classname Bomb.

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  

×