Interests

Occupation

Hello dear A3 community!
Today I present you my first ever script (released) so please be gentle with me, I am still a virgin!
I've often run into players in my servers who complain about how Arma 3 and/or most of its missions do not offer incapacitated NPCs (a la Farcry 5).
Previously, most Arma 3 mission makers had to set important NPCs to be immortal so their mission's functionality could remain intact and/or use Objects such as Boards, stands, computers etc as Vendors/Traders etc. It was that or having extremely fragile NPCs that "evil" players could exploit to ruin other players' experiences. There was no middle ground and I often found these immortal NPCs and/or Objects as traders quite immersion breaking.
Another mayor complaint from Arma mission makers was the extremely high difficulty revolving around setting custom Hit Points (HP) for units. Mission makers often found their important characters dying faster than they wanted or perhaps even tankier than what the mission required. This script is the solution to both problems =).
It is also a solution that is both system resources friendly and Multiplayer compatible!
So with that in mind and since I couldn't find any script that does exactly that or what my players wanted I came up with this:
I tried to make it as MP compatible as my limited knowledge allowed me to! (I've only tested on Hosted Servers). EDIT: Then came davidoss and fixed any locality issues remaining so not it should be fully MP compatible.
Usage: Inside a Unit's Init field in the EDEN editor add:
null = [this, 40, 2, 60] execVM "scripts\bossAi.sqf";
Where:
"this" is the name of the unit that will have increased HP.
"40" is the ammount of HP the Unit will have. (40 health means units can take ~4 shots).
"2" is the amount of lives/revives the Unit will have. (0 lives disables the increased HP so 1 is minimum), Set it to 999 for immortal NPCs who for immersion's sake still go into incapacitated state!
"60" is the time in seconds the Ai unit will remain in Unconscious state.
Ver. 1.2 UPDATE 03/12/18: Completely rewritten the script from scratch!
Ver. 1.0 UPDATE 30/11/18: The davidoss update!
As always any optimization/improvement/request input is greatly appreciated!
PS: This my first ever script is dedicated to my first ever friends and idols here on the forums: Haleks, George Floros and Vandeanson!
This wouldn't have been possible without the knowledge I kindly received from the scripting/programming gurus Larrow, davidoss, pierremgi, phronk, johnnyboy and many others! So thank you very much guys!