OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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 :)
-
Try put this in the MCU's init field:
this addeventhandler ["hit", {_this select 0 setdammage 0}]cheers
-
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
-
i like myke13021's answer better lol :D
-
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:
#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.