Home   Help Search Login Register  

Author Topic: Invincible Object (Indestructible Vehicle)  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

Offline satexas69

  • Members
  • *
Invincible Object (Indestructible Vehicle)
« on: 28 Aug 2007, 01:51:04 »
In one of my missions, I have a MCU (Mobile Command Unit) that serves as the teams mobile spawn point and tactical vehicle. What's the easiest way to keep it's "setdamage" at 0, and what's the safest way  :)

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Invincible Object (Indestructible Vehicle)
« Reply #1 on: 28 Aug 2007, 03:06:01 »
Try put this in the MCU's init field:
Code: [Select]
this addeventhandler ["hit", {_this select 0 setdammage 0}]cheers
just setpos & forgetpos!

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: Invincible Object (Indestructible Vehicle)
« Reply #2 on: 28 Aug 2007, 18:17:57 »
hehe...i was up to write "best and safest way is to keep your MCU away from combat zone".

But D_P_'s way is fast easy and should work.


Myke out

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Invincible Object (Indestructible Vehicle)
« Reply #3 on: 29 Aug 2007, 03:47:12 »
i like myke13021's answer better lol  :D

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: Invincible Object (Indestructible Vehicle)
« Reply #4 on: 30 Aug 2007, 23:15:36 »
AFAIK the hit command only works when the projectile causes more than 5% damage when it strikes the target. So the hit might not be a completely effective way.

The way I use is a simple script:
Code: [Select]
#Loop
@(getDammage myMCU > 0)
myMCU setDammage 0
goto "Loop"

The code is efficent and it's almost impossible to defeat. I was lit up by six machine gunners and two static MGs and they still couldn't kill me.
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08