OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 31 May 2008, 14:57:03

Title: Making an ai place and detonate a satchel????(solved)
Post by: Crowey on 31 May 2008, 14:57:03
Hi guys this is my first post as all my other editing projects have stayed very basic. The project im on at the moment needs a n ai civvy to follw a set group of way points then eventually place and detonate a satchel. ( suicide bomber in essence). Now everything is in place apart from the actual setting and detonating, he has the satchel in his inventory but need some help putting the commands into the trigger to make him do as i wish... Can you help?
Sprry for being a noob am learning as i go, and please put any answers in terms ill understand, lol
Title: Re: Making an ai place and detonate a satchel????
Post by: trooper543 on 31 May 2008, 15:07:21
hi Crowey
I found this a bit helpful on one of the furms cant remeber which one:


Make a unit with enough satchels to blow that building.

Place a waypoint near building, that you wanna blow up. In "On activation" field type:
Code Sample 

UnitName fire "PipeBombMuzzle"

then make another waypoint, where you want soldier to put another satchel with same text inside "On activation" field.
You can make as many those waypoints, as many satchels soldier has.

After you're done with placing bomb waypoints put a new waypoint with this in "On activation" field:
Code Sample 
UnitName action ["TOUCHOFF", UnitName]

this will blow the bombs up, so put it far enough, so the soldier won't be killed by explosion.
Title: Re: Making an ai place and detonate a satchel????
Post by: Crowey on 31 May 2008, 15:39:20
Great cheers mate gonna go try it now...........plus dont mind if he dies, lol makes it more fun to see him fly in the air
Title: Re: Making an ai place and detonate a satchel????
Post by: Crowey on 31 May 2008, 15:47:55
Spot on mate works a treat, thanks :clap:
Title: Re: Making an ai place and detonate a satchel????(solved)
Post by: schuler on 31 May 2008, 18:09:13
Crowey thank you for giving a solved  :good: ;)
most dont reply back :scratch:
cheers schuler ;)
Title: Re: Making an ai place and detonate a satchel????(solved)
Post by: h- on 31 May 2008, 18:51:28
Indeed, but please Crowey do not post consecutively.
If you have something to add to your post after a short period of time (less than 2-3 days) modify your post instead of 'replying to yourself'. :)
Title: Re: Making an ai place and detonate a satchel????(solved)
Post by: CharlieReddog on 19 Jun 2008, 10:38:01
Is there anyway in which to get the AI to place a timed satchel charge?
Title: Re: Making an ai place and detonate a satchel????(solved)
Post by: Planck on 19 Jun 2008, 11:56:52
After setting the satchel in place, try playing with this line:

unit1 action ["SETTIMER", unit2, <bombName>]

Taken from the Biki, you mean need to play about with it to get it to work the way you want.


Planck