Home   Help Search Login Register  

Author Topic: Chopper attack buildings  (Read 2245 times)

0 Members and 1 Guest are viewing this topic.

Offline Barbolani

  • Members
  • *
Chopper attack buildings
« on: 01 Aug 2007, 19:06:52 »
Hello all!

First of all, thanx OFPEC for this great resource for mission makers.

Im "old" to OFP-ArmA, but Ive never tried to make my own missions seriously...

Now im starting with one simple mission, and Im encountering problems trying to make an AI chopper attack a radiostation.

I searched in the forum but, the closest thing i found is how to make a tank dowatch a building and just fire... in this case dowatch is useless (i think).

But the wrost thing is that im trying to investigate with dotarget object xxxx and the object syntax dosent seem to work in arma as it worked in OFP, and the new COMREF is not clear in this matter.

The problem could be just solved camcreating an explosion while the chopper fires randomly, but I wanna be more polite...

Can you expert scriptors help me?

Thanks in advance.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Chopper attack buildings
« Reply #1 on: 01 Aug 2007, 19:29:25 »
You could use an invisible target from Mapfact's Map_Misc addon here.
urp!

Offline Barbolani

  • Members
  • *
Re: Chopper attack buildings
« Reply #2 on: 01 Aug 2007, 19:32:49 »
Thanks Mr peanut, but I think there must be a way with scripting... before using an addon maybe its better to place an enemy light armor close to the tower and destroy the tower with a camcreate right after not alive the armor

Offline firecontrol

  • Members
  • *
Re: Chopper attack buildings
« Reply #3 on: 01 Aug 2007, 19:58:12 »
I think a chopper will attack a roadcone if told to do so.....? Never tried it, but place a road cone right next to the tower, and you can even setDamage 1 on the tower after the roadcone is dead?

Offline sharkattack

  • Former Staff
  • ****
Re: Chopper attack buildings
« Reply #4 on: 01 Aug 2007, 20:34:34 »
have  you tried  do target ... do fire ... with a marker or logic  as target
also make choper aware of target ...
havnt  tried it myself   might work

i will take  a look in editor 
« Last Edit: 01 Aug 2007, 20:36:14 by shark attack »
"HOLY SARDINE" - see Shark-Attack meet his match

Offline Barbolani

  • Members
  • *
Re: Chopper attack buildings
« Reply #5 on: 02 Aug 2007, 11:31:21 »
Thank you all!!

As far as a I see doTarget doesent work with buildings. The sollution is to place some "dotargetable" object like a rodacone a barrel or a vehicle.

But here comes the problem B, that worries me much more: the sintax of the "object xxxx setdammage 1" doesent work!!! Ive tried a copy paste from the forum and didnt work. In fact I copy / pasted the comref syntax too, and didnt work.  :blink: :blink: :blink:

What am Im doing wrong?????

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Chopper attack buildings
« Reply #6 on: 02 Aug 2007, 13:15:51 »
You are doing nothing wrong, the 'object id' command is obsolete in Arma.

Try instead something like:

badbuilding =  someposition nearestObject objectID;
badbuilding setdamage 1;


Planck
I know a little about a lot, and a lot about a little.

Offline Barbolani

  • Members
  • *
Re: Chopper attack buildings
« Reply #7 on: 02 Aug 2007, 14:27:44 »
Thnx Planck,

But as far as i know with commands I cannot understand well what does mean your code... Sorry..

Could be something like place a barrel very close to the radio tower, name it b1, an then:

_badbuilding = nearestBuilding b1

_badbuilding setdammage 1

???

Offline Arkon

  • Members
  • *
Re: Chopper attack buildings
« Reply #8 on: 02 Aug 2007, 14:28:29 »
Hi,

Dunno if this is any good for what u r doing, as it is for effect only:
(using a trigger "trigger1")
(playsound "ari" is a rocket sound effect)

Code: [Select]
; playsound "ari"
; ~3
_pos = [(getPos trigger1 select 0),(getPos trigger1 select 1)]
_b2 = "Bomb" createVehicle _pos
_b2 setPos _pos
_b1 = "M_Ch29_AT" createVehicle _pos
~0.05
deleteVehicle _b2

and u can use "fire1 InFlame True" just after the explosion for added effect

Arkon
« Last Edit: 02 Aug 2007, 14:46:06 by Arkon »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Chopper attack buildings
« Reply #9 on: 02 Aug 2007, 14:46:31 »
OK, try:

Place a marker over the building you want to destroy, name the marker something.......fred maybe.
Press the Show IDs button in the editor and zoom in till you can read the ID number of the building.

Then in your script, trigger or whatever, use:

badbuilding =  getMarkerPos "fred" nearestObject IDnumber;
badbuilding setdamage 1;

Works fine with a radio trigger anyway.


Planck
I know a little about a lot, and a lot about a little.

Offline Barbolani

  • Members
  • *
Re: Chopper attack buildings
« Reply #10 on: 02 Aug 2007, 15:33:26 »
Thnx Arkon, its a fine sollution if you wish to destroy with simullated artillery, and the use of sounds and camcreate can give it more FX

Thnx Planck, Ill give it a try tonight, it should work.


Offline Barbolani

  • Members
  • *
Re: Chopper attack buildings
« Reply #11 on: 04 Aug 2007, 23:07:19 »
works perfectly Planck, thank you very much. This seems the best way to destroy buildings in ArmA..

I just placed a car in front of the antenna, and a trigger activated when not alive the car... just perfect..

Thanks.

Offline Nixer6

  • Members
  • *
Re: Chopper attack buildings
« Reply #12 on: 05 Aug 2007, 03:17:44 »
I found that, in OFP at least, invisible armored targets attracted lots of chopper fire.  :clap:

Should work for ArmA too. That way you don't need to place an unwanted vehicle there. You just setPos the target in the middle of what you want blown up.
Why do I have to be a Rocket Scientist to make a good mission?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Chopper attack buildings
« Reply #13 on: 05 Aug 2007, 04:33:01 »
Addonless chopper attacking whatever, buildings too  ;)