Arma 3
Not enough ratings
Adjust Unit or Vehicle Health or Armor
   
Award
Favorite
Favorited
Unfavorite
Data Type: Composition
Meta: Dependency
File Size
Posted
1.288 KB
12 Jan, 2021 @ 10:34pm
1 Change Note ( view )

Subscribe to download
Adjust Unit or Vehicle Health or Armor

Description
Examples of the handleDamage event handler to change how much damage a unit or vehicle can take.

Replace unit1, unit2, or unit 3 with the name of your unit to adjust the damage they take.

0.5 is half damage
1 is full damage
10 is 10X normal damage
Hopefully you see the pattern

Great for boosting player units or making tanks a little easier to take down.


Checkout my other uploads and follow my workshop for much more to come!

https://steamhost.cn/steamcommunity_com/id/EasyArma/myworkshopfiles/?appid=107410
21 Comments
TechnoTroglodyte 13 Jun @ 1:11am 
This seems to reset damage every time I crash, it works to reduce, but each new crash fully fixes the vehicle and applies new damage (if at all depending on the impact) Any insight?
PretzelDarter 17 Nov, 2024 @ 3:46pm 
Does the name need to be the variable name? I'm trying this in a mission and it's working when I run it in singleplayer, but when I test it in multiplayer it's applying to either playable unit (1 blufor vs 1 opfor) rather than just one of the two and I really don't know what I'm doing wrong
Bostonian  [author] 29 Sep, 2024 @ 3:23am 
@Stolt disable ACE vehicle damage.
Bostonian  [author] 29 Sep, 2024 @ 3:21am 
@dazedleader I don't use Zeus but I belive there is a way to integrate compositions. May be better to change the script to apply to the nearest unit though instead of named unit—that way you could spawn in your vehicle and then place one of these triggers next to it and apply the script. Just an idea. You're welcome to modify in anyway as needed.
Bostonian  [author] 29 Sep, 2024 @ 3:17am 
@Stolt Works with RHS. I don't use ACE but theoretically should. Try it out.
Stolt 25 Sep, 2024 @ 1:59am 
Yo does this work:
1. Without Ace?
2. With RHS?
dazedleader 22 Jun, 2024 @ 4:05pm 
is there a way for this to be added to zeus
Chief Zuma 31 Dec, 2023 @ 9:02am 
Thanks for this - It's kind of saved GM for me. I didn't enjoy it much when all of the AI squads would instakill eachother. Now I can get the setting with somewhat closer to Vanilla damage values, which makes the game flow better.
Bostonian  [author] 12 Dec, 2023 @ 1:40pm 
@Era

Just leave it in the trigger if you're having trouble, or copy past the code for only one unit into your unit's init and match the variable name.
Era 12 Dec, 2023 @ 4:49am 
This works with Ace, but you need to disable "Ace Vehicle Damage"
How do you use it for a single unit though in its init?
When I try it comes up with "Missing } " , then "Missing ] " if I put that in, etc