BIS fnc EXP camp dynamicAISkill: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.62 | |1.62 | ||
|gr1= Campaign | |gr1= Campaign | ||
|serverExec= server | |serverExec= server | ||
| Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as [[BIS_fnc_EXP_camp_setSkill]] execept that it automatically executes when a player joins or disconnects. | | Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as [[BIS_fnc_EXP_camp_setSkill]] execept that it automatically executes when a player joins or disconnects. | ||
| [mode,affectedSides] call [[BIS_fnc_EXP_camp_dynamicAISkill]]; | | [mode,affectedSides] call [[BIS_fnc_EXP_camp_dynamicAISkill]]; | ||
|p1= mode: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable, [[false]] to disable | |p1= mode: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable, [[false]] to disable | ||
|p2= affectedSides: [[Array]] - Array of affected sides and their skill sets. For details see [[BIS_fnc_EXP_camp_setSkill]] | |p2= affectedSides: [[Array]] - Array of affected sides and their skill sets. For details see [[BIS_fnc_EXP_camp_setSkill]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1=<code>[ | |x1=<code>[ | ||
Line 25: | Line 25: | ||
] [[call]] [[BIS_fnc_EXP_camp_dynamicAISkill]];</code> | ] [[call]] [[BIS_fnc_EXP_camp_dynamicAISkill]];</code> | ||
| [[Arma 3 AI Skill]], [[setSkill]], [[skillFinal]], [[BIS_fnc_EXP_camp_setSkill]] | | [[Arma 3 AI Skill]], [[setSkill]], [[skillFinal]], [[BIS_fnc_EXP_camp_setSkill]] | ||
}} | }} | ||
Revision as of 22:06, 17 January 2021
Description
- Description:
- Changes AI skill based on player count, responding to player connected / player disconnected events. This function does exactly the same as BIS_fnc_EXP_camp_setSkill execept that it automatically executes when a player joins or disconnects.
- Execution:
- call
- Groups:
- Campaign
Syntax
- Syntax:
- [mode,affectedSides] call BIS_fnc_EXP_camp_dynamicAISkill;
- Parameters:
- mode: Boolean - (Optional, default true) true to enable, false to disable
- affectedSides: Array - Array of affected sides and their skill sets. For details see BIS_fnc_EXP_camp_setSkill
- Return Value:
- Nothing
Examples
- Example 1:
[ true, [ [WEST,0.1,0.2,0.7,0.6 ], [EAST,0.1,0.2,0.7,0.6 ] ] ] call BIS_fnc_EXP_camp_dynamicAISkill;
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