Home   Help Search Login Register  

Author Topic: Destroying vehicles  (Read 3510 times)

0 Members and 2 Guests are viewing this topic.

Agent Fire

  • Guest
Destroying vehicles
« on: 18 Aug 2003, 17:13:57 »
I was wondering what was the best way to destroy vehicles; I often use mines on armoured vehicles, but is there an 'on activation' command that I can put on a trigger that will destroy a unit? :hmm:

Offline DrStrangelove

  • Members
  • *
  • Mr.Creative
Re:Destroying vehicles
« Reply #1 on: 18 Aug 2003, 17:29:22 »
Make a vehicle, name vehicle1 (or whatever)
then make a trigger that is activated by whatever
OnActivation: vehicle1 setdammage 4     (makes vehicle explode)

Or instead:
vehicle1 setdammage 1     (makes vehicle kaputt and burn a bit)


*gg*  ;D

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #2 on: 18 Aug 2003, 17:36:08 »
kaputt and burn a bit? hmmm... I THINK I'll go for 4 this tim...

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #3 on: 18 Aug 2003, 17:39:14 »
that works and everything, but It doesn't make a vehicle flip into the air at 200mph like mines do... any ideas?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Destroying vehicles
« Reply #4 on: 18 Aug 2003, 17:59:58 »
camCreate a couple of LGBs at the vehicle's location.
Plenty of reviewed ArmA missions for you to play

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #5 on: 18 Aug 2003, 18:06:14 »
What exactly would I put in the activation field to do that?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #6 on: 18 Aug 2003, 18:33:45 »
"syntax not guaranteed" ;)

Dunno about LGB, never use em but Heats would do fine. Something like this:

bomb="heat125" camcreate getpos setpos tank1; bomb="heat125" camcreate getpos setpos tank1; bomb="heat125" camcreate getpos setpos tank1; bomb="heat125" camcreate getpos setpos tank1

Something like that.

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #7 on: 18 Aug 2003, 19:24:14 »
It says 'reserved variable in expression"

_Ross_

  • Guest
Re:Destroying vehicles
« Reply #8 on: 18 Aug 2003, 20:17:25 »
i blow up stuff alot so i got the syntax
tank1 is your vehicle

"laserguidedbomb" camcreate (getpos tank1)

that simple

wont work with some planes though, sometimes, the planes just drop them (which is also kinda cool)
« Last Edit: 18 Aug 2003, 20:19:51 by _Ross_ »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #9 on: 18 Aug 2003, 20:19:49 »
It says 'reserved variable in expression"
yea, that's because the syntax's wrong. But I can't remember the correct one.

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #10 on: 18 Aug 2003, 20:21:51 »
now it says "type object expect nothing"

_Ross_

  • Guest
Re:Destroying vehicles
« Reply #11 on: 18 Aug 2003, 20:26:41 »
thats really not normal
in my script, i use this exact line to create the bomb in a carpet bombing script

Quote
"laserguidedbomb" camcreate (getpos tank1)

its pasted right out of the script and  it works fine

try maybe using different weapons like "rocket57"
« Last Edit: 18 Aug 2003, 20:30:10 by _Ross_ »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #12 on: 18 Aug 2003, 20:37:01 »
now it says "type object expect nothing"
Have you named your tank tank1?

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #13 on: 18 Aug 2003, 20:41:11 »
check attachment

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #14 on: 18 Aug 2003, 20:48:00 »
should be attached this time

_Ross_

  • Guest
Re:Destroying vehicles
« Reply #15 on: 18 Aug 2003, 20:59:26 »
armstrong, the mane is not the prablem. i just mada a lirrle mission with tank1 and in its init i put
Quote
"laserguidedbomb" camcreate (getpos tank1)

and i got the same arror message

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #16 on: 18 Aug 2003, 21:02:59 »
look 4 urselves

Agent Fire

  • Guest
Re:Destroying vehicles
« Reply #17 on: 18 Aug 2003, 21:38:33 »
this is weird - does AnYoNe know how to destroy a unit using the activation field of a trigger?

Drozdov

  • Guest
Re:Destroying vehicles
« Reply #18 on: 18 Aug 2003, 21:52:42 »
Is there any way to set a vehicle's status to 'destroyed' without having to hear it go BOOM? Useful if you want to create a mission on the site of a recent battle. I'm thinking of the play/switchmove commands but they only work with humans don't they?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #19 on: 18 Aug 2003, 21:58:47 »
Is there any way to set a vehicle's status to 'destroyed' without having to hear it go BOOM? Useful if you want to create a mission on the site of a recent battle. I'm thinking of the play/switchmove commands but they only work with humans don't they?
Yea, lower both ammo, health and fuel in the three lines.

And Fire, it must be a syntax error. Try searching the forums for "camcreating bombs" or something like that.

Drozdov

  • Guest
Re:Destroying vehicles
« Reply #20 on: 18 Aug 2003, 22:06:02 »
That doesn't work, they still go BOOM. Sometimes they don't even die at all.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #21 on: 18 Aug 2003, 22:33:09 »
That doesn't work, they still go BOOM. Sometimes they don't even die at all.
Are u sure they are down at 0 % ?

Drozdov

  • Guest
Re:Destroying vehicles
« Reply #22 on: 18 Aug 2003, 22:40:27 »
Yep. Though maybe when they don't explode they aren't quite. They still go BOOM, which isn't much good. Same with the setdammage 1 command.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Destroying vehicles
« Reply #23 on: 19 Aug 2003, 02:23:31 »
If you set a vehicles ammo and fuel to zero, when it is killed (by moving the health slider to the left or by setdammage 1), it will not explode.

I use this all the time, believe me it works ;)

Agent Fire, what version of OFP are you using? I take it you don't have Resistance?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Destroying vehicles
« Reply #24 on: 19 Aug 2003, 07:48:29 »
If you set a vehicles ammo and fuel to zero, when it is killed (by moving the health slider to the left or by setdammage 1), it will not explode.

I use this all the time, believe me it works ;)

Agent Fire, what version of OFP are you using? I take it you don't have Resistance?
Hey, I camreated heats/shells with 1.0! It oughta work.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Destroying vehicles
« Reply #25 on: 19 Aug 2003, 11:43:14 »
Yeah, but the A10 with "laserguidedbomb" was only added later... ;)

Unnamed

  • Guest
Re:Destroying vehicles
« Reply #26 on: 19 Aug 2003, 14:07:29 »
I could never get "laserguidedbomb" to work with V1.91 either.

Code: [Select]
_Bomb = ("bomb" camcreate [_XTarget,_YTarget])
_Bomb setdamage 1

Worked for me?
« Last Edit: 19 Aug 2003, 14:08:09 by Unnamed »

KyleSarnik

  • Guest
Re:Destroying vehicles
« Reply #27 on: 19 Aug 2003, 14:46:21 »
I would use:

Code: [Select]
bomb = "laserguidedbomb" camcreate (getpos unluckybastard)
Worked for me when I wanted a T72 to get blown sky high  ;D