Search the Community
Showing results for tags 'allowdamage'.
Found 3 results
-
(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:
-
Spawn protection for players and vehicles alike (dedicated server)
Asmodeuz posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'd like to have a protection zone (spawn protection) for both human players and vehicles (empty or not) inside a trigger area. This should work in dedicated server environment. I've tried two slightly different approaches and neither of them work well enough. The most current I'm trying to get to work is one where I placed a trigger for Independent side with the following attributes: Type: None Activation: Independent Activation Type: Present Repetable [Yes] Server Only [No] Condition this On Activation {(player) allowDamage false} forEach playableUnits; hint "Spawn protection enabled"; On Deactiavation {(player) allowDamage true} forEach playableUnits; hint "Spawn protection disabled"; While testing this works quite nicely. Leaving the trigger area on foot makes the player vulnerable to everything that can actually kill the player. But as long as the player stays inside the trigger area he/she will be invulnerable. Pretty basic stuff I guess. But there's a catch: if the player spawns a vehicle inside the trigger area, jumps in the vehicle for a short moment, then jumps out and leaves the trigger area on foot and as long as the vehicle stays inside the trigger area the player will be invulnerable. Why is this happening and how would I go on to fix it? Earlier I was trying to use another approach to this: Type: None Activation: Independent Activation Type: Present Repetable [Yes] Server Only [No] Condition ((vehicle player) in thisList) On Activation {(vehicle player) allowDamage false} Foreach thislist; hint "Spawn protection enabled"; On Deactiavation {(vehicle player) allowDamage true} forEach [allUnits, vehicles]; hint "Spawn protection disabled"; This worked as well as the first one: when the player moves out of the trigger area on foot he/she will become vulnerable. But as with the another approach spawning a vehicle and getting in produces awkward result: now even if the player drives out of the trigger area he will be invulnerable indefinitely. So all in all neither of the two approaches work well enough. Also both of the alternatives don't make vehicles invulnerable at all when situated inside the trigger area. Any pointers how to achieve player and vehicle invulnerability at the same time using a trigger?- 4 replies
-
- spawn protection
- vehicle
-
(and 3 more)
Tagged with:
-
player allowDamage true call on all machines help
sgtelis posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So from what I've been able to figure out the code "player allowDamage true;" only gets done on the client that it's called on. In my mission I'm making this turns out really strange. In the begining everyone are unkillable (using allowDamage false) and then when the mission actually starts I want them to take damage. However, due to it not being called properly the players can kill themselves with grenades but not kill eachother.- 9 replies
-
- allowDamage
- editor
-
(and 3 more)
Tagged with: