Jump to content
Sign in to follow this  
DanBonehill

Help with AI Skill Parameter

Recommended Posts

Hey guys,

I'm trying to set up a Parameter to set the AI skill level in my mission. Currently I have the below in my Description.ext

class Params 
{
	class AISkill
	{
		title = "AI Skill";
		value[] = {0.3,0.5,0.8};
		texts[] = {"Recruit","Regular","Veteran"};
		default = 0.5;
	};		

};

Once I load into the lobby however I don't get the option to change this Parameter. Anyone know where I'm going wrong?

I have another parameter below it to change the time in the mission and I get the option to change that.

Thanks

EDIT:

I'm an idiot.

Supposed to be values[] not value[]

Fixed now.

Note to self.... proof read

Edited by DanBonehill

Share this post


Link to post
Share on other sites

You could always make it more detailed, and customizable and do something like this, this is what i use and works:

Init.sqf

[] spawn 
{
while {true} do
	{
	sleep 10;

		{
		_x setSkill ["aimingspeed", 0.1];
		_x setSkill ["spotdistance", 0.2];
		_x setSkill ["aimingaccuracy", 0.2];
		_x setSkill ["aimingshake", 0.1];
		_x setSkill ["spottime", 0.1];
		_x setSkill ["spotdistance", 0.5];
		_x setSkill ["commanding", 0.2];
		_x setSkill ["general", 0.5];
		} 
	forEach allUnits;
	}
};

Works for placed and spawned AI.

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  

×