Posted: . At: 4:14 PM. This was 4 years ago. Post ID: 14267
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



A very nice script for Arma 3. This is a quick revive script to bypass all of the hassle.


This script is a quick revive script that allows players to revive down players that are injured and unconscious in one simple action. This works very well.

myfnc_uncon_special = {
	params ["_unit", "_isUnconscious"];
 
	if ( (typeOf player == "rhsusf_socom_marsoc_sarc") or (typeOf player == "rhsusf_army_ocp_medic") ) then {
		private _action = _unit addAction ["Revive", {call med;}];
		_unit setUserActionText [_action , "Revive", "<img size='2' image='\a3\ui_f\data\IGUI\Cfg\Actions\heal_ca'/>"];
	};
 
if (!_isUnconscious) then {
	removeAllActions _unit;
};
 
};
 
["ace_unconscious", myfnc_uncon_special] call CBA_fnc_addEventHandler;

Add this code after it to add a marker that will show for downed players.

addMissionEventhandler ["Draw3D", {
 
	{
		if ((_x distance player) < 300 && {_x getVariable "ACE_isUnconscious"}) then {
			drawIcon3D ["a3\ui_f\data\map\MapControl\hospital_ca.paa", [0.6,0.15,0,0.8], _x, 0.5, 0.5, 0, format["%1 (%2m)", name _x, ceil (player distance _x)], 0, 0.02];
		};
	} forEach allUnits;
 
	_friendlyGrenades = (player nearObjects ["GrenadeHand", 50]) select {
		(getShotParents _x) params ["_vehicle", "_unit"];
 
		side group _unit isEqualTo side group player
	};
 
	if (count _friendlyGrenades > 0) then {
		{
			_pos = visiblePosition _x;
			drawIcon3D ["\A3\ui_f\data\map\markers\military\circle_CA.paa", [0.9,1,0,1], _pos, 1, 1, 0, "Grenade!"];
			nil;
		} count _friendlyGrenades;
	};
}];

This works perfectly with the current ACE 3 version. It is a very good shortcut to revive downed players whilst using ACE on a server. Put this script into the initPlayerLocal.sqf file to enable this revive system in your next Arma 3 mission using ACE mod.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.