BIS fnc EXP camp setSkill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(26 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.62


|1.00|= Game version
|gr1= Campaign
____________________________________________________________________________________________


| <pre>/*
|serverExec= server


Description:
|descr= Sets skill for an entire AI side. The skill will be calculated using a lerp function. Function will take player as multiplier.
Set's skill for an entire AI side


Parameters:
|s1= [side,skillMin,skillAimMin,skillMax,skillAimMax] call [[BIS_fnc_EXP_camp_setSkill]]
["_side", sideUnknown, [sideUnknown]],
["_skillMin", 0.5, [0.0]],
["_skillAimMin", 0.3, [0.0]],
["_skillMax", 0.8, [0.0]],
["_skillAimMax", 0.5, [0.0]]


Returns:
|p1= side: [[Side]] - side of which AI skill should be changed
Nothing
|p2= skillMin: [[Number]] - (Optional, default 0.5) minimal general skill
*/
|p3= skillAimMin: [[Number]] - (Optional, default 0.3) minimal aiming skill
|p4= skillMax: [[Number]] - (Optional, default 0.8) maximal general skill
|p5= skillAimMax: [[Number]] - (Optional, default 0.5) maximal aiming skill


// Server only
|r1=
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_EXP_camp_setSkill]]; --> |= Syntax
|x1=<sqf>[WEST,0.1,0.2,0.7,0.6] call BIS_fnc_EXP_camp_setSkill;</sqf>
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= &lt;code&gt;&lt;/code&gt; |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: AI Skill]] [[setSkill]] [[skillFinal]] [[BIS_fnc_EXP_camp_dynamicAISkill]]
}}
}}
&lt;h3 style="display:none"&gt;Notes&lt;/h3&gt;
&lt;dl class="command_description"&gt;
&lt;!-- Note Section BEGIN --&gt;
&lt;!-- Note Section END --&gt;
&lt;/dl&gt;
&lt;h3 style="display:none"&gt;Bottom Section&lt;/h3&gt;
[[Category:Function Group: Campaign|{{uc:EXP_camp_setSkill}}]]
[[Category:Functions|{{uc:EXP_camp_setSkill}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_setSkill}}]]
</text>
<minor/>
</revision>
</page>
</mediawiki>

Latest revision as of 10:38, 6 May 2024

Hover & click on the images for description

Description

Description:
Sets skill for an entire AI side. The skill will be calculated using a lerp function. Function will take player as multiplier.
Execution:
call
Groups:
Campaign

Syntax

Syntax:
[side,skillMin,skillAimMin,skillMax,skillAimMax] call BIS_fnc_EXP_camp_setSkill
Parameters:
side: Side - side of which AI skill should be changed
skillMin: Number - (Optional, default 0.5) minimal general skill
skillAimMin: Number - (Optional, default 0.3) minimal aiming skill
skillMax: Number - (Optional, default 0.8) maximal general skill
skillAimMax: Number - (Optional, default 0.5) maximal aiming skill
Return Value:
Return value needed

Examples

Example 1:
[WEST,0.1,0.2,0.7,0.6] call BIS_fnc_EXP_camp_setSkill;

Additional Information

See also:
Arma 3: AI Skill setSkill skillFinal BIS_fnc_EXP_camp_dynamicAISkill

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note