BIS fnc EXP camp setSkill: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3 " to "[[Arma 3: ") |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
|1.62 | |game1= arma3 | ||
|version1= 1.62 | |||
|gr1= Campaign | |gr1= Campaign | ||
Line 8: | Line 8: | ||
|serverExec= server | |serverExec= server | ||
| Sets skill for an entire AI side. The skill will be calculated using a lerp function. Function will take player as multiplier. | |descr= Sets skill for an entire AI side. The skill will be calculated using a lerp function. Function will take player as multiplier. | ||
| [side,skillMin,skillAimMin,skillMax,skillAimMax] call [[BIS_fnc_EXP_camp_setSkill]] | |s1= [side,skillMin,skillAimMin,skillMax,skillAimMax] call [[BIS_fnc_EXP_camp_setSkill]] | ||
|p1= side: [[Side]] - | |p1= side: [[Side]] - side of which AI skill should be changed | ||
|p2= skillMin: [[Number]] - (Optional, default 0.5) | |p2= skillMin: [[Number]] - (Optional, default 0.5) minimal general skill | ||
|p3= skillAimMin: [[Number]] - (Optional, default 0.3) | |p3= skillAimMin: [[Number]] - (Optional, default 0.3) minimal aiming skill | ||
|p4= skillMax: [[Number]] - (Optional, default 0.8) | |p4= skillMax: [[Number]] - (Optional, default 0.8) maximal general skill | ||
|p5= skillAimMax: [[Number]] - (Optional, default 0.5) | |p5= skillAimMax: [[Number]] - (Optional, default 0.5) maximal aiming skill | ||
| | |r1= | ||
|x1=< | |x1=<sqf>[WEST,0.1,0.2,0.7,0.6] call BIS_fnc_EXP_camp_setSkill;</sqf> | ||
| [[Arma 3 AI Skill]] | |seealso= [[Arma 3: AI Skill]] [[setSkill]] [[skillFinal]] [[BIS_fnc_EXP_camp_dynamicAISkill]] | ||
}} | }} |
Latest revision as of 10:38, 6 May 2024
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:
Additional Information
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