Home   Help Search Login Register  

Author Topic: AI sets a Satchel Charge  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

CPT Rooster

  • Guest
AI sets a Satchel Charge
« on: 30 May 2004, 18:43:47 »
What is the procedure to get an Opponent AI unit to set a satchel charge at a certain coordinate?

I want the AI to travel to a coordinate and place a satchel charge, set the timer and get away. I would have to script the action to "Place Satchel Charge" and "Set timer to X seconds". I would have him leave the area so my player unit can disarm the satchel and seek down the AI unit

StonedSoldier

  • Guest
Re:AI sets a Satchel Charge
« Reply #1 on: 30 May 2004, 19:05:01 »
nameofunit fire ["put","timebomb"]

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:AI sets a Satchel Charge
« Reply #2 on: 31 May 2004, 04:34:18 »
and
AI action["touch off",AI,0,0,"pipebomb"]

Dubieman

  • Guest
Re:AI sets a Satchel Charge
« Reply #3 on: 31 May 2004, 04:47:45 »
Well tonyranger he wants a timer. You could do that via trigger but a reg timebomb might be easier like what stoned soldier said.

What do you want?
30 secs = timebomb
more than 30 secs= tonyranger's code in a trigger with a countdown thingy

THe guy has to put the pipbomb down first so use ["put","pipebomb"] then trigger stuff.
Hope it helps.

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:AI sets a Satchel Charge
« Reply #4 on: 02 Jun 2004, 08:58:34 »
Here is part of an unofficial readme that deaddog made for me about a year ago. My mission still has not left my HD but this may help someone else.

Quote
The script works by planting charges at object IDs until either the group runs out of charges
or runs out of targets.  It also randomly picks the target locations.  That
way, you can have a couple of guys and a large number of targets.  It will
be different each time the script is run.

In the example, 5 black ops are supposed to plant 12 charges in Larche.
Sometimes only 10 or 11 get planted.  You will see a hint telling you that
right before the charges go off.

When you get everything set up like you want it (no or very few green
messages), then change pc_degub to false.  You can also change the timeout
from 300 seconds to whatever you like.  I think 2 minutes is sufficient for
smaller target areas.

Again, all credit goes to deaddog, not me. If you think this will (or can) work for you, here it is.

                                                                             Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.