Home   Help Search Login Register  

Author Topic: setdammage, adddammage?  (Read 919 times)

0 Members and 1 Guest are viewing this topic.

fragsta

  • Guest
setdammage, adddammage?
« on: 24 May 2003, 21:40:21 »
When you want to make a particular object damaged more when something happens, how do you do it? I want it so that if something is destroyed it will affect something else's health, but not quite kill it. I could just make it so that it sets the damage with setdammage, but what if the thing i want to be damaged is already destroyed? It would have a reverse effect. So is there a way of adding damage onto something? such as
Code: [Select]
setdammage +0.2or something?

Thanx in advance!

Komuna

  • Guest
Re:setdammage, adddammage?
« Reply #1 on: 25 May 2003, 03:14:46 »
_Unit setdammage (getdammage _Unit)+0.2

Command combination... very useful! ;)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:setdammage, adddammage?
« Reply #2 on: 25 May 2003, 11:17:11 »
You can add a conditonal statement to ensure that _unit isn't killed.   For example, before Komuna's line have

? getdammage _unit > 0.7: _unit setdammage 0.7

so the adding of 0.2 of dammage will not kill _unit.
Plenty of reviewed ArmA missions for you to play

fragsta

  • Guest
Re:setdammage, adddammage?
« Reply #3 on: 25 May 2003, 11:49:12 »
kewl, thanks alot guys!