Jump to content
SirFlavalot

How to script a spawn of the new LoW cluster bomb?

Recommended Posts

Any ideas for writing a script to spawn of the new LoW cluster bomb? I've been reading this post and I'm guessing it's not simple. I tried:

 

_b = "Mo_cluster_Bomb_01_F" createVehicle ((getpos curatorCamera) vectorAdd [0,0,-1]);
_b setdamage 1;
 

The bomb gets created under the curatorcamera, but disappears as soon as you move the camera.

 

Info on the bomb I've been trying to spawn:

CBU-85

PylonMissile_1Rnd_BombCluster_01_F→BombCluster_01_Ammo_F→submunitionAmmo[] = {"Mo_cluster_Bomb_01_F",0.93,"BombCluster_01_UXO_deploy",0.07};

 

Any ideas would be greatly appreciated!

Share this post


Link to post
Share on other sites
_bomb = "BombCluster_01_Ammo_F" createVehicle ((getpos curatorCamera) vectorAdd [0,0,-1]); 
_bomb setDir getDir curatorCamera; 
_bomb setVelocityModelSpace [0,50,0]; // let the bomb fly a few meters

This creates the whole clusterbomb. The classname you used only created the subammo type resulting in only one bomb. setting the damage to 1 seems to disable/delete the object. The bomb automaticly dispenses the smaller bombs.

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

×