Jump to content
Sign in to follow this  
1para{god-father}

Display AI Skill

Recommended Posts

Is there any way to display / show the AI skill settings for Debugging purposes

When i place AI on Map they seem to get the Skill settings of the server, but if i spawn them they get Skill of 1 so i would like to monitor

Thanks

Share this post


Link to post
Share on other sites

OK resolved

God_fnc_Skill ={
_groupnamed = _this select 0;	
_leaderguy = leader _groupnamed;
_leaderguy setskill 0.55;
{
_x setskill ["aimingAccuracy",0.35];
_x setskill ["spotDistance",0.55];
_x setskill ["spotTime",0.55];
_x setskill ["courage",0.50];
_x setskill ["commanding",0.60];
_x setskill ["aimingShake",0.60];
_x setskill ["aimingSpeed",0.55];


_aA = _x skill "aimingAccuracy";
_aS = _x skill "aimingShake";
_aSp = _x skill "aimingSpeed";
_e = _x skill "Endurance";
_sD = _x skill "spotDistance";
_sT = _x skill "spotTime";
_c = _x skill "courage";
_rS =_x skill "reloadSpeed";

diag_log format [
			"unit: %1\naimingAccuracy: %2\naimingShake: %3
			\naimingSpeed: %4\nEndurance: %5\nspotDistance: %6
			\nspotTime: %7\ncourage: %8\nreloadSpeed: %9"

			,_x,_aA,_aS,_aSp,_e,_sD,_sT,_c,_rS];

} foreach units _groupnamed ;
};

Edited by psvialli

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×