Search the Community
Showing results for tags 'ai damage'.
Found 1 result
-
(Solved) AI unit vulnerable only to a type of weapon
Argmax posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
HI, I was looking for a way to create a unit that can only be killed with a specific weapon class. Example: General "Tom(unit like a boss)" can only die by shots with a missile launcher, other like pistols, riffles, grenades, etc. they do not harm it. "unit" should have allowdamage false, except with the specific type of weapon (in this example missile launcher) EDIT: Create an unit (Will be the "boss" ) i call him Tom (you choose the name) -in the "boss" init put: this allowDamage false; -Place a Trigger with a size that can cover the boss´s domains, - Select Activation: any player, - Act. Type : present, -Check Repeat (if you change the weapon the boss will be "inmortal" again ) Cond (currentWeapon player isEqualTo "name of weapon") && alive Tom; //this part detects if you have that weapon in your hands (not backpack, hold, etc) and if the "boss" is alive. On Act. Tom allowDamage true; On Deact. Tom allowDamage false;- 1 reply
-
- damage
- allowdamage
-
(and 1 more)
Tagged with: