Jump to content
Sign in to follow this  
shark-attack

Ai skill settings

Recommended Posts

hi all

another thing has me stumped ..

in a co op mission(wip) i have an option of day or night for the players (via parameters) to choose from ..

how could i lower the skill level of the ai if night time option is selected ...

many thanx in advance ...

Share this post


Link to post
Share on other sites

Lets say the daytime is set as param1 in the description.ext file.

In your init file you check the value.

? (param1 == "Night"):setdate(...);{setskill x} forEach units ...;

Hope it helps.

Share this post


Link to post
Share on other sites

thanx for replys but this has got me stumped

heres what i got

description ext

//////////////////////////////

titleParam1 = "START TIME:";

valuesParam1[] =

{0,9,};

defValueParam1 = 0;

textsParam1[] =

{"dusk attack","dawn attack",};

///////////////////////////////

in my init sqs i have

skiptime param 1

how exactly do i set then check the values so if night is selected i can lower the skil level of the ai or if daytime is selected i can raise the skill of the ai

many thanx in advance

Share this post


Link to post
Share on other sites

Well, if you actually click the link for the array version, this is what it says in the top row:

This is a reserved keyword for future implementations. In Armed Assault it is not implemented yet.

So... nener.gif

Sorry, couldn't resist biggrin_o.gif

Share this post


Link to post
Share on other sites

Someone remove it from arma scripting command list then.

I bet there are mission makers out there able to give a good answer to this question.

Edit: typing

Share this post


Link to post
Share on other sites

trigger

delete the true write in param1

action:

{_x setskill whatever} foreach units groupname

or to cover all units easily

make a real big (combat area covering) trigger wich is triggered by side (west,east)

activation: true and param1

action:

{_x setskill whatever} foreach units list triggername

Share this post


Link to post
Share on other sites
Well, if you actually click the link for the array version, this is what it says in the top row:

This is a reserved keyword for future implementations. In Armed Assault it is not implemented yet.

So... nener.gif

Sorry, couldn't resist biggrin_o.gif

Try to keep in mind that there is actually an v1.09 patch, which could mean that this information is out of date? Hence my reply.

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  

×