Home   Help Search Login Register  

Author Topic: Making an ai place and detonate a satchel????(solved)  (Read 1777 times)

0 Members and 1 Guest are viewing this topic.

Offline Crowey

  • Members
  • *
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
« Last Edit: 31 May 2008, 17:44:50 by Crowey »

Offline trooper543

  • Members
  • *
Re: Making an ai place and detonate a satchel????
« Reply #1 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.

Offline Crowey

  • Members
  • *
Re: Making an ai place and detonate a satchel????
« Reply #2 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

Offline Crowey

  • Members
  • *
Re: Making an ai place and detonate a satchel????
« Reply #3 on: 31 May 2008, 15:47:55 »
Spot on mate works a treat, thanks :clap:

Offline schuler

  • Contributing Member
  • **
Re: Making an ai place and detonate a satchel????(solved)
« Reply #4 on: 31 May 2008, 18:09:13 »
Crowey thank you for giving a solved  :good: ;)
most dont reply back :scratch:
cheers schuler ;)
Semper Fi

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Making an ai place and detonate a satchel????(solved)
« Reply #5 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'. :)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline CharlieReddog

  • Members
  • *
Re: Making an ai place and detonate a satchel????(solved)
« Reply #6 on: 19 Jun 2008, 10:38:01 »
Is there anyway in which to get the AI to place a timed satchel charge?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Making an ai place and detonate a satchel????(solved)
« Reply #7 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
I know a little about a lot, and a lot about a little.