29 lines
648 B
Plaintext
29 lines
648 B
Plaintext
|
/*
|
||
|
Author: Djeeberjr
|
||
|
|
||
|
Description:
|
||
|
Makes an ai a Medic so injured players can heal themself a the base.
|
||
|
|
||
|
Parameter(s):
|
||
|
0: OBJECT - the ai unit
|
||
|
*/
|
||
|
|
||
|
params ["_self"];
|
||
|
|
||
|
_self setUnitTrait ["medic",1];
|
||
|
//TODO: make unit ace3 doctor
|
||
|
|
||
|
_self addAction ["<t color='#ff0000'>Rrequest medical attention</t>",{
|
||
|
params ["_target", "_caller", "_actionId", "_arguments"];
|
||
|
|
||
|
//TODO: heal player
|
||
|
//[objNull, player] call ace_medical_fnc_treatmentAdvanced_fullHealLocal;
|
||
|
//ace_medical_level
|
||
|
//https://github.com/acemod/ACE3/tree/master/addons/medical/functions
|
||
|
//http://www.armaholic.com/forums.php?m=posts&q=35327
|
||
|
|
||
|
|
||
|
},nil,1.5,true,true,"","true",2];
|
||
|
|
||
|
|