BIS fnc EXP camp dynamicAISkill: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " [ [[" to " [<nowiki/>[[")
m (Text replacement - "[[Arma 3 " to "[[Arma 3: ")
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________
| arma3 |Game name=


|1.62|Game version=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.62


| 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.{{Informative|Function only needs to be executed on the server.}} |DESCRIPTION=
|gr1= Campaign
____________________________________________________________________________________________


| [mode,affectedSides] call [[BIS_fnc_EXP_camp_dynamicAISkill]];|SYNTAX=
|serverExec= server


|p1= mode: [[Boolean]] - (Optional, default [[true]]) [[True]] to enable, [[false]] to disable|PARAMETER1=
|descr= 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.
|p2= affectedSides: [[Array]] - Array of affected sides and their skill sets. For details see [[BIS_fnc_EXP_camp_setSkill]]|PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|s1= [mode, affectedSides] call [[BIS_fnc_EXP_camp_dynamicAISkill]]
____________________________________________________________________________________________


|x1=<code>[  
|p1= mode: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable, [[false]] to disable
[[true]],  
[  
  [<nowiki/>[[WEST]],0.1,0.2,0.7,0.6 ],
  [<nowiki/>[[EAST]],0.1,0.2,0.7,0.6 ]
]
] [[call]] [[BIS_fnc_EXP_camp_dynamicAISkill]];</code> |=
____________________________________________________________________________________________


| [[Arma 3 AI Skill]], [[setSkill]], [[skillFinal]], [[BIS_fnc_EXP_camp_setSkill]]|SEEALSO=
|p2= affectedSides: [[Array]] - array of affected sides and their skill sets. For details see [[BIS_fnc_EXP_camp_setSkill]]
 
|r1= [[Nothing]]
 
|x1= <sqf>
[
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;
</sqf>
 
|seealso= [[Arma 3: AI Skill]] [[setSkill]] [[skillFinal]] [[BIS_fnc_EXP_camp_setSkill]]
}}
}}
[[Category:Function Group: Campaign|{{uc:EXP_camp_dynamicSkill}}]]
[[Category:Functions|{{uc:EXP_camp_dynamicSkill}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_dynamicSkill}}]]

Latest revision as of 10:38, 6 May 2024

Hover & click on the images for description

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

See also:
Arma 3: AI Skill setSkill skillFinal BIS_fnc_EXP_camp_setSkill

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