Jump to content
Sign in to follow this  
Guest

How do i trigger an explosion in the editor?

Recommended Posts

Its just not working for me :(

Try again, it wasn't complete just the basic ideas on how to set it up.

Share this post


Link to post
Share on other sites
Try again, it wasn't complete just the basic ideas on how to set it up.

Nope, still not working,

Am placing the Trigger, then setting the axis a and axis b both are 5-5

then trigged by anybody

then on the on Act, i put

bomb = "Bo_GBU12_LGB" createVehicle getmarkerPos "explosion";

Then i place a marker, with both the name and text with

bomb = "Bo_GBU12_LGB" createVehicle getmarkerPos "explosion";

nothing is happening when i walk over it :butbut:

Share this post


Link to post
Share on other sites
Nope, still not working,

Am placing the Trigger, then setting the axis a and axis b both are 5-5

then trigged by anybody

then on the on Act, i put

bomb = "Bo_GBU12_LGB" createVehicle getmarkerPos "explosion";

Then i place a marker, with both the name and text with

bomb = "Bo_GBU12_LGB" createVehicle getmarkerPos "explosion";

nothing is happening when i walk over it :butbut:

I just did as you described and copied the the code to the trigger and set the marker to explosion and it works fine.

make sure you don't put quotes around the markername in the marker but you do need them around the markername in the trigger.

Share this post


Link to post
Share on other sites

Sigh, and sigh

nothing is working for me, its just lost cause :mad: :(

Share this post


Link to post
Share on other sites
It's a little too simple, your not calling it right or passing the variables. Try it this way

call it with the following place in the init script of the unit or game logic

nul=["grenade",unitname,5,0] execVM "strike.sqf"

and in the scrip it should be

_ammo      = _this select 0;
_bombsite1 = _this select 1;
_delay     = _this select 2;
_height    = _this select 3;

sleep _delay;

_bomb = _ammo createVehicle [(getPosASL _bombsite1 select 0),( getPosASL _bombsite1 select 1),_height];

I've changed it a bit to make it more useful.

Variables Passed are

1 Ammo ,can be changed from the editor

2 name of unit or gamelogic you wish to target

3 the delay before it goes off

4 is the height at which the explosive is dropped

There a many better scripts than this but I do like to keep things simple, I use it as a template and build on it.

This one is really good, it can be modded to do many great things!

Share this post


Link to post
Share on other sites
how do i use that?

do i put it into my addons folder

unzip using 7zip free, and place the mission in you missions folder usually somewhere in mydocuments. You will need to know these things anyway.

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  

×