Jump to content
HistoryFan_13654

How do you make a gbu-12 bomb spawn with a trigger?

Recommended Posts

Hi, i am trying to make a gbu-12 spawn when a plane flies through a trigger, but i am not sure what scripts are required to make this happen. Could someone please help me? Thanks.

Share this post


Link to post
Share on other sites

In the triggers onActivation field:


boom="Bo_GBU12_LGB" createVehicle getPos whatever;

where 'whatever' can be any object at which the LGB is to spawn. An invisible helipad, for example.

  • Like 1

Share this post


Link to post
Share on other sites

Do you want it to explode as well, or that it's just spawned?
You could add full damage to into to force explosion:
setDamage [1,TRUE];

 

_boom="Bo_GBU12_LGB" createVehicle getPos whatever;
_boom setDamage [1,true];


And in case you want to follow that traditional suggestion of initially creating the object on the "0,0,0" mark, and then move it to desired position immediately after:

 

_boom = createVehicle ["Bo_GBU12_LGB",[0,0,0]];
_boom setPos (getPos whatever);
_boom setDamage [1,true];

 

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

×