Jump to content
Sign in to follow this  
MarkCode82

Small Code snippet if you want to know more about how AI Subskills work

Recommended Posts

And are computed from initial set value of 0.1 on all

initArray = []; 
diag_log "-----------------------------------------------------";
_skillTypesArray = [   
	"aimingAccuracy",      
	"aimingShake",      
	"aimingSpeed",     
	"endurance",      
	"spotDistance",      
	"spotTime",      
	"courage",      
	"reloadSpeed",      
	"commanding",      
	"general"];     _myAI = cursorTarget;   {  
	initArray pushBack (_myAI skillFinal _x);  
	diag_log format ["%1: %2",_x,(initArray select _forEachIndex)];
	
	
	} forEach _skillTypesArray;
	diag_log "-----------------------------------------------------";

Output of the snippet:
 

"-----------------------------------------------------"
"aimingAccuracy: 0.1"
"aimingShake: 0.1"
"aimingSpeed: 0.59"
"endurance: 0.18"
"spotDistance: 0.236"
"spotTime: 0.126"
"courage: 0.18"
"reloadSpeed: 0.18"
"commanding: 0.18"
"general: 0.18"
"-----------------------------------------------------"
  • Like 1

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  

×