Home   Help Search Login Register  

Author Topic: Ai unit to use Bangalor on wire fence?  (Read 574 times)

0 Members and 1 Guest are viewing this topic.

Offline jarvo9

  • Members
  • *
  • Freedom!
Ai unit to use Bangalor on wire fence?
« on: 24 Dec 2004, 16:37:55 »
Sorry about long title but..i wanted to get the point across at a glance

Overview:

I'm creating a mission for  WWIIEC 2nd Rangers to take a Pacific Island(by Redneck) occupied by the IJA. On approach of a defended hill by MG and Cannon emplacements you reach a pesky rolled wire fence. I have used the  setdammage .7 to the fence and an eraser script(by shark attack) to make it disappear when blown up.

Ok here's my problem:

I want to have multiple single AI Bangalor units to blow holes in the wire fence. I can get them to target a specific fence section but how do i get the units to place their bangalors down near the wire instead of them just shooting at it with their rifles?

All my guys end up trying to go around the wire but they are surrounded by it and trapped.

Plz help my poor Rangers get through the wire instead of getting cut to ribbons trapped behind enemy wire!

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Ai unit to use Bangalor on wire fence?
« Reply #1 on: 24 Dec 2004, 17:11:56 »
you need to find the name of the bangalor in the addon (ex. JAM_AT4Rocket, or something like that)

unit dotarget fence;unit fire ["bangalor name","single"]
but he needs to be close to the fence, else i think he'll just drop it where he is...

Offline jarvo9

  • Members
  • *
  • Freedom!
Re:Ai unit to use Bangalor on wire fence?
« Reply #2 on: 24 Dec 2004, 18:24:28 »
unit dotarget fence;unit fire ["bangalor name","single"]
but he needs to be close to the fence, else i think he'll just drop it where he is...

I believe the name is "ECA_bangalore" but it still doesn't seem to be working.... :-\

soldier = rb1
fence = wf1
 
looks like this=>  rb1 dotarget wf1; rb1 fire["ECA_bangalore","single"]

if thats right would it be better in waypoint or trigger?

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Ai unit to use Bangalor on wire fence?
« Reply #3 on: 24 Dec 2004, 19:08:38 »
probably in a trigger

you may also want to try changing dotarget to dowatch
« Last Edit: 24 Dec 2004, 19:09:29 by Triggerhappy »

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Ai unit to use Bangalor on wire fence?
« Reply #4 on: 03 Jan 2005, 19:02:54 »
It should tell you how to do it in the readme that comes with the pack.

sim
The Unsung Campaign Team Leader

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Ai unit to use Bangalor on wire fence?
« Reply #5 on: 07 Jan 2005, 04:35:11 »
why is this in mission ideas?
it should be in the editing boards

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Ai unit to use Bangalor on wire fence?
« Reply #6 on: 07 Jan 2005, 05:49:02 »
Why, what ever are you on about, triggy? ;D

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Ai unit to use Bangalor on wire fence?
« Reply #7 on: 07 Jan 2005, 09:01:19 »
The more complicated way (the working way ;) ) would be to make a script that tells the soldier to move to the position of the fence section, play an animation so it looks like it's putting something down, then remove the bangalor 'used' from the soldiers inventory, move him back to safe distance and camCreate (or createVehicle) a shell that will make the explosion...

This is just a harsh example, might not work at all...:
Code: [Select]
; execute script with:
; [unit,fence] exec "blah.sqs"
_unit = _this select 0
_fence = _this select 1

_unit doMove (position _fence)
~4
@unitReady _unit

_unit playMove "putSacthelAnimName"
~2
_unit playmove "backFromPuttingSacthelAnim"

_unit removeMagazine "bangelorname"
~1

_unit doMove someposition
~10

"shell73" camCreate (position _fence)

blah blah
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Ai unit to use Bangalor on wire fence?
« Reply #8 on: 07 Jan 2005, 12:48:35 »
Quote
Sorry about long title

No, don't apologise!    You did the right thing.   :D   It's a real pleasure to see a title that is actually helpful.   :thumbsup:

I wish more people would write good titles like that, instead of rubbish such as "noob q" or "please help".
Plenty of reviewed ArmA missions for you to play

Offline jarvo9

  • Members
  • *
  • Freedom!
Re:Ai unit to use Bangalor on wire fence?
« Reply #9 on: 07 Jan 2005, 18:49:37 »
Ok guys thanx for the input, i think i got it worked out...

Sengir from WWIIEC had the best option for me and i'm working with that.

Also, i appoligize for posting this topic in the wrong section. I'm kinda new to this forum stuff  :-[.

So Salute to all who replied and thanx for trying to help!  :D