BIS fnc EXP camp setSkill: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (final formatting) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 |= Game name | | arma3 |= Game name | ||
|1. | |1.62|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Sets skill for an entire AI side. The skill will be calculated using a lerp function. Function will take player as multiplier.{{Informative|Function only needs to be executed on the server.}} |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [side,skillMin,skillAimMin,skillMax,skillAimMax] call [[BIS_fnc_EXP_camp_setSkill]];|= Syntax | ||
|p1= |= Parameter 1 | |p1= side: [[Side]] - Side of which AI skill should be changed|= Parameter 1 | ||
|p2= skillMin: [[Number]] - (Optional, default 0.5) Minimal general skill|= Parameter 2 | |||
|p3= skillAimMin: [[Number]] - (Optional, default 0.3) Minimal aiming skill|= Parameter 3 | |||
|p4= skillMax: [[Number]] - (Optional, default 0.8) Maximal general skill|= Parameter 4 | |||
|p5= skillAimMax: [[Number]] - (Optional, default 0.5) Maximal aiming skill|= Parameter 5 | |||
| |= Return value | | |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= | |x1=<code>[WEST,0.1,0.2,0.7,0.6] [[call]] [[BIS_fnc_EXP_camp_setSkill]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[Arma 3 AI Skill]], [[setSkill]], [[skillFinal]], [[BIS_fnc_EXP_camp_dynamicAISkill]]|= See also | ||
}} | }} | ||
[[Category:Function Group: Campaign|{{uc:EXP_camp_setSkill}}]] | [[Category:Function Group: Campaign|{{uc:EXP_camp_setSkill}}]] | ||
[[Category:Functions|{{uc:EXP_camp_setSkill}}]] | [[Category:Functions|{{uc:EXP_camp_setSkill}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_setSkill}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_setSkill}}]] | ||
Revision as of 15:27, 23 December 2018
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:
- Uncategorised
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
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