OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: satexas69 on 28 Aug 2007, 01:51:04

Title: Invincible Object (Indestructible Vehicle)
Post by: satexas69 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  :)
Title: Re: Invincible Object (Indestructible Vehicle)
Post by: D_P_ 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
Title: Re: Invincible Object (Indestructible Vehicle)
Post by: myke13021 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
Title: Re: Invincible Object (Indestructible Vehicle)
Post by: LeeHunt on 29 Aug 2007, 03:47:12
i like myke13021's answer better lol  :D
Title: Re: Invincible Object (Indestructible Vehicle)
Post by: Tyger 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.