Jump to content
Sign in to follow this  
Cyrus-The-Virus

How to let stachel charges explode?

Recommended Posts

Ok, i want to have a trigger when a person enters it is has to execute a script,

In this script there will be stachelcharges placed on certain points and they will be brought to explosion.

How can i do this without having to use AI units that are placing those charges and explode them??? do i need gunslingers addon to select those charges??? and how do i bring them to explosion in script??? setdammage wont work (with mines)

It doesnt matter if it are stachel or mines, either way is good.

Share this post


Link to post
Share on other sites

I'm trying something similar: I want to have player destroy a building with satchel charges.

I can destroy the building with a trigger and setdammage, but I'm trying to create a script/trig combo that checks to see if there are satchel charges in area, then when the charges explode the setdammage is triggered. No luck so far. "ObjectSatchel" didn't work for me. (even "objectPipebomb" didn't work.)

Share this post


Link to post
Share on other sites

First place satchel

Unit FIRE ["PUT", "PIPEBOMB"]

After explose it

Unit Action ["TOUCHOFF"]

Or you can use triggers with this in on activation:

_Blow = "PipeBomb" camCreate getpos trigger1

If you want chain explosion you chain a trigger detect and triggers "pipeBomb" with variables.

Share this post


Link to post
Share on other sites

just to clarify:

I put "ObjectSatchel Action ["TOUCHOFF"]"

in the 'On Activation' field of the trigger?

does that explode all satchel charges on the map? Or do i have to name the satchel charge?

Share this post


Link to post
Share on other sites

Ok this is all nice, but how can i place a stachel direcly on the map? I cant see an stachelobject in the editor.

or do i realy need a AI player that will place it??

Share this post


Link to post
Share on other sites

hmmm...i think u get satchel in the gunslinger add-on....

not sure...

if it`s there u can put it anywhere u want.... smile.gif

Share this post


Link to post
Share on other sites

I am looking for a same type of script referance I want to set satcheles around an area and when a troop triggers the trigger I want the bombs to go off in the distance to add realistic effects, I have the editorupgrade102 and i can get multiple types of bombs in the empty/ammo fields there is mines satcheles at rpgs all kinds of exsplosives but i cant set them off using the prescribed meathod above. I want to have the mine/boms placed on the map for when it starts not where i have to go place them then it will work.

If you area genius and have a free sec could ya test yer theory for me then post it! Many thanks in advance!

Share this post


Link to post
Share on other sites

I read a similar thread the other day so i made this for ya!

1 Make a trigger thats activated by anyone/present/ then in the activation field I wrote "bomb setdammage 1"

***Notice how dammage was spelled, this was why it would not work for me, I need to hit high school again because I spelled it "damage"

2 Now make an bomb, make a empty/ammo/"bomb satchele charge" and then name this "bomb"

I named it bomb to match the "bomb" in the triggers activation feild, cause if the trigger does not recognise the "bomb" it wont work for some reason! go figure!

To test triggers here is what I do: I go to effects and add a sound to the trigger, this way I have a sound to hear when I trigger the trigger. This is how i know the trigger is working. That is fairly self explanitory NO SOUND = TRIGGER NOT WORKING RIGHT

As for the "bomb satchele charge" If you screw up making a name for it well quit makin maps while your ahead!

This was what I was looking for, now I can set bombs around my map and have them set off by triggers, I wanted this to help me add more of a "surprise to the player effect", I am a new map makin dummy so I need things explained in the simplist terms till I understand how the game reads the code which is what we make in the editor, then its simple as pie!

I hope I have helped a fellow dummy!!!!!!!!!

I have found alot of threads that I read and dont clearly understand, I realize that when you have been doing map makin for so long you over look things that a beginner may still not really understand so its good to clarify!

Oh one more thing, say a guy wanted to make alot of "bombs" well then in the trigger and the bomb satchele charge all you need to do is copy and paste them. Make five bombs and five triggers but name them "BOMB" "BOMB1" "BOMB2" "BOMB3" "BOMB4". Remember if ya have a bomb name "whatever" ya need a trigger named the EXACT same! Or you could make a whole wack of bombs and set them all of with one trigger by putting this in the activation field: bomb setdammage 1; bomb1 setdammage 1; bomb2 setdammage 1; bomb3 setdammage 1; bomb4 setdammage 1; UHHH.....KEWL......

Perhaps you can add that bomb to the cargo of a vehicle and make a trigger to blow up when you cross it... hmmm i gotta go and try that out!

OFP for ever!

VRK's main site

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  

×